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.
Requires:
Author:
xmlbinmsg
Version:
4791
Status:
under development
License:
Generated code has no license
To Do:
FIX: put in a description of the message here with fields and
types.
Date:
2008-01-11
|
BitVector
|
encode(params,
validate=False)
Create a sls_weatherreport binary message payload to pack into an
AIS Msg sls_weatherreport. |
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 sls_weatherreport 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 = ('time_month', 'time_day', 'time_hour', 'time_min'...
|
|
|
fieldListPostgres = ('time_month', 'time_day', 'time_hour', 't...
|
|
|
toPgFields = {'pos_latitude': 'pos', 'pos_longitude': 'pos'}
Go to the Postgis field names from the straight field name
|
|
|
fromPgFields = {'pos': ('pos_longitude', 'pos_latitude')}
Go from the Postgis field names to the straight field name
|
|
|
pgTypes = {'pos': 'POINT'}
Lookup table for each postgis field name to get its type.
|
|
|
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 lower': '-51.1', '51.1...
|
|
|
airtempDecodeLut = {'-51.1': '-51.1 degrees C or lower', '51.1...
|
|
|
dewpointEncodeLut = {'-51.1 degrees C or lower': '-51.1', '51....
|
|
|
dewpointDecodeLut = {'-51.1': '-51.1 degrees C or lower', '51....
|
|
|
visibilityEncodeLut = {'25.4 km or greater': '25.4'}
|
|
|
visibilityDecodeLut = {'25.4': '25.4 km or greater'}
|
|
|
watertempEncodeLut = {'-51.1 degrees C or lower': '-51.1', '51...
|
|
|
watertempDecodeLut = {'-51.1': '-51.1 degrees C or lower', '51...
|
|
|
dbTableName = 'sls_weatherreport'
Database table name
|