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 sls_weatherreport binary message payload to pack into an
AIS Msg sls_weatherreport.
|
dict
|
decode(bv,
validate=False)
Unpack a sls_weatherreport message
|
|
decodetime_month(bv,
validate=False)
|
|
decodetime_day(bv,
validate=False)
|
|
decodetime_hour(bv,
validate=False)
|
|
decodetime_min(bv,
validate=False)
|
|
decodestationid(bv,
validate=False)
|
|
decodepos_longitude(bv,
validate=False)
|
|
decodepos_latitude(bv,
validate=False)
|
|
decodespeed(bv,
validate=False)
|
|
decodegust(bv,
validate=False)
|
|
decodedirection(bv,
validate=False)
|
|
decodeatmpressure(bv,
validate=False)
|
|
decodeairtemp(bv,
validate=False)
|
|
decodedewpoint(bv,
validate=False)
|
|
decodevisibility(bv,
validate=False)
|
|
decodewatertemp(bv,
validate=False)
|
|
decodereserved(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)
Print a reserved message to stdout.
|
str
|
sqlCreateStr(outfile=sys.stdout,
fields=None,
extraFields=None)
Return the SQL CREATE command for this message type
|
sqlhelp.create
|
sqlCreate(fields=None,
extraFields=None)
Return the sqlhelp object to create the table.
|
str
|
sqlInsertStr(params,
outfile=sys.stdout,
extraParams=None)
Return the SQL CREATE command for this message type
|
sqlhelp.insert
|
sqlInsert(params,
extraParams=None)
Give the SQL insert statement
|
dict
|
testParams()
Return a params file base on the testvalue tags.
|
|
addMsgOptions(parser)
|
|
__date__ = '2007-01-23'
Date of last svn commit
|
|
TrueBV = <ais.BitVector.BitVector object at 0x2b82a70>
Why always rebuild the True bit? This should speed things up a
bunch
|
|
FalseBV = <ais.BitVector.BitVector object at 0x2b82af0>
Why always rebuild the False bit? This should speed things up a
bunch
|
|
fieldList = ['time_month', 'time_day', 'time_hour', 'time_min', ...
|
|
speedEncodeLut = {'102.2 kts or greater': '102.2'}
|
|
speedDecodeLut = {'102.2': '102.2 kts or greater'}
|
|
gustEncodeLut = {'102.2 kts or greater': '102.2'}
|
|
gustDecodeLut = {'102.2': '102.2 kts or greater'}
|
|
airtempEncodeLut = {'51.1 degrees C or greater': '51.1', '-51.1 degrees...
|
|
airtempDecodeLut = {'51.1': '51.1 degrees C or greater', '-51.1': '-51....
|
|
dewpointEncodeLut = {'51.1 degrees C or greater': '51.1', '-51.1 degrees...
|
|
dewpointDecodeLut = {'51.1': '51.1 degrees C or greater', '-51.1': '-51....
|
|
visibilityEncodeLut = {'25.4 km or greater': '25.4'}
|
|
visibilityDecodeLut = {'25.4': '25.4 km or greater'}
|
|
watertempEncodeLut = {'51.1 degrees C or greater': '51.1', '-51.1 degrees...
|
|
watertempDecodeLut = {'51.1': '51.1 degrees C or greater', '-51.1': '-51....
|
|
typeChoices = 'binary', 'nmeapayload', 'nmea'
|
|
outputChoices = 'std', 'html', 'csv', 'sql', 'kml', 'kml-full'
|
|
outfile = file(options.outputFileName, 'w')
|
|
msgDict = {'time_month': options.time_monthField, 'time_day': ...
|
|
bitLen = len(bits)
|
|
bits = bits+ BitVector(size= (6-(bitLen % 6)))
|
|
buf = StringIO.StringIO()
|
|
result = buf.getvalue()
|