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 imo_met_hydro binary message payload to pack into an AIS
Msg imo_met_hydro. |
source code
|
|
|
dict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printKml(params,
out=sys.stdout)
KML (Keyhole Markup Language) for Google Earth, but without the
header/footer |
source code
|
|
|
stdout
|
printFields(params,
out=sys.stdout,
format='std',
fieldList=None,
dbType='postgres')
Print a imo_met_hydro message to stdout. |
source code
|
|
|
str
|
sqlCreateStr(outfile=sys.stdout,
fields=None,
extraFields=None,
addCoastGuardFields=True,
dbType='postgres')
Return the SQL CREATE command for this message type |
source code
|
|
|
sqlhelp.create
|
sqlCreate(fields=None,
extraFields=None,
addCoastGuardFields=True,
dbType='postgres')
Return the sqlhelp object to create the table. |
source code
|
|
|
str
|
sqlInsertStr(params,
outfile=sys.stdout,
extraParams=None,
dbType='postgres')
Return the SQL INSERT command for this message type |
source code
|
|
|
sqlhelp.insert
|
|
|
str
|
|
|
str
|
|
|
dict
|
|
|
|
|
|
|
TrueBV = BitVector(bitstring= "1")
Why always rebuild the True bit? This should speed things up a
bunch
|
|
|
FalseBV = BitVector(bitstring= "0")
Why always rebuild the False bit? This should speed things up a
bunch
|
|
|
fieldList = ('MessageID', 'RepeatIndicator', 'UserID', 'Spare'...
|
|
|
fieldListPostgres = ('MessageID', 'RepeatIndicator', 'UserID',...
|
|
|
toPgFields = {'latitude': 'Position', 'longitude': 'Position'}
Go to the Postgis field names from the straight field name
|
|
|
fromPgFields = {'Position': ('latitude', 'longitude')}
Go from the Postgis field names to the straight field name
|
|
|
pgTypes = {'Position': 'POINT'}
Lookup table for each postgis field name to get its type.
|
|
|
RepeatIndicatorEncodeLut = {'default': '0', 'do not repeat any...
|
|
|
RepeatIndicatorDecodeLut = {'0': 'default', '3': 'do not repea...
|
|
|
airpressuretrendEncodeLut = {'decreasing': '1', 'increasing': ...
|
|
|
airpressuretrendDecodeLut = {'0': 'steady', '1': 'decreasing',...
|
|
|
waterleveltrendEncodeLut = {'decreasing': '1', 'increasing': '...
|
|
|
waterleveltrendDecodeLut = {'0': 'steady', '1': 'decreasing', ...
|
|
|
seastateEncodeLut = {'Calm': '0', 'Fresh breeze': '5', 'Gale':...
|
|
|
seastateDecodeLut = {'0': 'Calm', '1': 'Light air', '10': 'Sto...
|
|
|
preciptypeEncodeLut = {'FIX: find the WMO list of types': '0',...
|
|
|
preciptypeDecodeLut = {'0': 'FIX: find the WMO list of types',...
|
|
|
iceEncodeLut = {'Not sure. Maybe no ice?': '0', 'Not sure. M...
|
|
|
iceDecodeLut = {'0': 'Not sure. Maybe no ice?', '1': 'Not sur...
|
|
|
dbTableName = 'imo_met_hydro'
Database table name
|