Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
C++ decoder for Automatic Identification System for tracking ships and decoding maritime information
C++ Python Makefile HTML
branch: master
Failed to load latest commit information.
ais Drop lines that start with something other than the first sentence, e…
bin Bugfixes to gpsd format
docs Update mid.csv to reflect ITU changes (#27).
m4 Start to autoconf build
src Start to autoconf build
test Support old style USCG NMEA metadata. Cleanup nmea_queue dispatch of …
third_party Remove .svn
utils Added a script to collect one message of each type from a stream, to …
.gitignore Rearranged to have src/... for c++ and {ais,test}/ for python
AUTHOR.txt Switch license to Apache 2.0. Version 0.14
CMakeLists.txt Starting over on cmake support
ChangeLog.html Replacing every x/y pair with a dedicated Ais class instance. Add tes…
LICENSE Cleanup license file
MANIFEST.in Replacing every x/y pair with a dedicated Ais class instance. Add tes…
Makefile-custom Starting over on cmake support
Makefile.am Start to autoconf build
README.org Update README.org
TODO.org factor out header initialization of mmsi, repeat and mmsi, plus more …
VERSION Replacing every x/y pair with a dedicated Ais class instance. Add tes…
ais_lut.py cleanup white space
configure.ac Start to autoconf build
create.sql Fixed getType so that it is now a const method
maritime_id_codes.py cleanup white space
nagios_pg_ais.py Switch license to Apache 2.0. Version 0.14
nais2pg.py Fix ais.decode' exception so that it appears as ais.DecodeException (…
send_data.py Replacing every x/y pair with a dedicated Ais class instance. Add tes…
setup.py Move RIS 8:200:* messages to ais8_200.cpp and added a test for 8:200:10.
test.aivdm a lot closer to a compete test set

README.org

Introduction

Library for decoding maritime Automatic Identification System messages.

See Also

http://en.wikipedia.org/wiki/Automatic_Identification_System

Other open source AIS projects:

Building

Building with legacy Makefile

make -f Makefile-custom test

Building with python

python setup.py build
python setup.py install

Building with CMake

cmake .
make

Usage

ipython
import ais
ais.decode('15PIIv7P00D5i9HNn2Q3G?wB0t0I', 0)
ais.decode('402u=TiuaA000r5UJ`H4`?7000S:', 0)
ais.decode('55NBjP01mtGIL@CW;SM<D60P5Ld000000000000P0`<3557l0<50@kk@K5h@00000000000', 0)
import ais
import ais.compatibility.gpsd
ais.compatibility.gpsd.mangle(ais.decode('55NBjP01mtGIL@CW;SM<D60P5Ld000000000000P0`<3557l0<50@kk@K5h@00000000000', 0))

AIS Specification Documents

Hacking

The C++ code was switched to the Google style in November, 2012. Indenting should be by 2 spaces.

http://google-styleguide.googlecode.com/svn/trunk/cpplint/

Something went wrong with that request. Please try again.