Package ais :: Module ais_towersplit
[hide private]
[frames] | no frames]

Module ais_towersplit

source code

Split an USCG N-AIS log file into one file per receiving station.


Requires: epydoc > 3.0alpha3

Author: Kurt Schwehr

Version: 4791

Copyright: 2006

Since: 2006-Sep-24

Status: under development

Organization: CCOM

License: GPL v2

To Do:

Bug: NOT complete

Functions [hide private]
str or None getStation(msg, withR=True)
Return the station/tower portion of the message
  towersplit(options, filenames)
One file per receive station/tower

Variables [hide private]
  __date__ = '2006-09-24'
Date of last svn commit
  success = False

Function Details [hide private]

getStation(msg, withR=True)

source code 
Return the station/tower portion of the message
Parameters:
  • withR - True keeps the leading r
Returns: str or None
Station name

towersplit(options, filenames)

source code 

One file per receive station/tower

The tower is specified in the USCG extensions after the checksum in the field starting with a 'r'. In this message, the station is r3669961. This is not located in a fixed position.

!AIVDM,1,1,,B,15MgF90017JWnghFFuLeJrW608D;,0*7C,x161434,s26256,d-109,T34.43128733,r3669961,1152921695


Variables Details [hide private]

__date__

Date of last svn commit
Value:
'2006-09-24'                                                           
      

success

None
Value:
False