Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 572 Bytes

File metadata and controls

37 lines (28 loc) · 572 Bytes

AIS Parser

Install

  1. install swig
  2. pip install aisparser

Quick Start

Parse one line at a time

from aisparser import Parser
p=Parser()
vdm=p.parse('!ARVDM,1,1,,A,16:`e0mP1:8N3OD=oj:QFwvR0p9J,0*38')
print(vdm.type_)
print(vdm.msg_id)
print(vdm.channel)
print(vdm.latitude)
print(vdm.longitude)
print(vdm.cog)

Parse from file

from aisparser import Parse
p=Parse()
for record in p.from_file(filename):
    print(record.msg_id)

TODO

  • Easy tool for parsing from file
  • Full support for VDM
  • Upload to PYPI