Autogenerated python functions to serialize/deserialize binary
messages.
Need to then wrap these functions with the outer AIS packet and then
convert the whole binary blob to a NMEA string. Those functions are not
currently provided in this file.
BitVector
|
encode(params,
validate=False)
Create a waterlevel binary message payload to pack into an AIS Msg
waterlevel.
|
dict
|
decode(bv,
validate=False)
Unpack a waterlevel message
|
|
decodedac(bv,
validate=False)
|
|
decodefid(bv,
validate=False)
|
|
decodeefid(bv,
validate=False)
|
|
decodetimetag_month(bv,
validate=False)
|
|
decodetimetag_day(bv,
validate=False)
|
|
decodetimetag_hour(bv,
validate=False)
|
|
decodetimetag_min(bv,
validate=False)
|
|
decodetimetag_sec(bv,
validate=False)
|
|
decodestationid(bv,
validate=False)
|
|
decodestationloc_longitude(bv,
validate=False)
|
|
decodestationloc_latitude(bv,
validate=False)
|
|
decodewaterlevel(bv,
validate=False)
|
|
decodedatum(bv,
validate=False)
|
|
decodesigma(bv,
validate=False)
|
|
decodeo(bv,
validate=False)
|
|
decodelevelinferred(bv,
validate=False)
|
|
decodeflat_tolerance_exceeded(bv,
validate=False)
|
|
decoderate_tolerance_exceeded(bv,
validate=False)
|
|
decodetemp_tolerance_exceeded(bv,
validate=False)
|
|
decodeexpected_height_exceeded(bv,
validate=False)
|
|
decodelink_down(bv,
validate=False)
|
|
decodetimeLastMeasured_month(bv,
validate=False)
|
|
decodetimeLastMeasured_day(bv,
validate=False)
|
|
decodetimeLastMeasured_hour(bv,
validate=False)
|
|
decodetimeLastMeasured_min(bv,
validate=False)
|
|
decodetimeLastMeasured_sec(bv,
validate=False)
|
|
printHtml(params,
out=sys.stdout)
|
|
printKml(params,
out=sys.stdout)
KML (Keyhole Markup Language) for Google Earth, but without the
header/footer
|
stdout
|
printFields(params,
out=sys.stdout,
format='std',
fieldList=None,
dbType='postgres')
Print a waterlevel message to stdout.
|
str
|
sqlCreateStr(outfile=sys.stdout,
fields=None,
extraFields=None,
addCoastGuardFields=True,
dbType='postgres')
Return the SQL CREATE command for this message type
|
sqlhelp.create
|
sqlCreate(fields=None,
extraFields=None,
addCoastGuardFields=True,
dbType='postgres')
Return the sqlhelp object to create the table.
|
str
|
sqlInsertStr(params,
outfile=sys.stdout,
extraParams=None,
dbType='postgres')
Return the SQL INSERT command for this message type
|
sqlhelp.insert
|
sqlInsert(params,
extraParams=None,
dbType='postgres')
Give the SQL INSERT statement
|
dict
|
testParams()
Return a params file base on the testvalue tags.
|
|
addMsgOptions(parser)
|
|
__date__ = '2007-02-26'
Date of last svn commit
|
|
TrueBV = <ais.BitVector.BitVector object at 0x2b92070>
Why always rebuild the True bit? This should speed things up a
bunch
|
|
FalseBV = <ais.BitVector.BitVector object at 0x2b920f0>
Why always rebuild the False bit? This should speed things up a
bunch
|
|
fieldList = ('dac', 'fid', 'efid', 'timetag_month', 'timetag_day...
|
|
fieldListPostgres = ('dac', 'fid', 'efid', 'timetag_month', 'timetag_day...
|
|
toPgFields = {}
Go to the Postgis field names from the straight field name
|
|
fromPgFields = {}
Go from the Postgis field names to the straight field name
|
|
pgTypes = {}
Lookup table for each postgis field name to get its type.
|
|
datumEncodeLut = {'STND': '3', 'NAVD': '7', 'MLS': '5', 'WaterDepth':...
|
|
datumDecodeLut = {'1': 'IGLD-85', '0': 'MLLW', '3': 'STND', '2': 'Wat...
|
|
typeChoices = 'binary', 'nmeapayload', 'nmea'
|
|
outputChoices = 'std', 'html', 'csv', 'sql', 'kml', 'kml-full'
|
|
dbChoices = 'sqlite', 'postgres'
|
|
outfile = file(options.outputFileName, 'w')
|
|
msgDict = {'dac': '366', 'fid': '1', 'efid': '1', 'timetag_mon...
|
|
bitLen = len(bits)
|
|
bits = bits+ BitVector(size= (6-(bitLen % 6)))
|
|
buf = StringIO.StringIO()
|
|
result = buf.getvalue()
|