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. |
source code
|
|
|
dict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| decodestationloc_longitude(bv,
validate=False) |
source code
|
|
|
|
| decodestationloc_latitude(bv,
validate=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| decodeflat_tolerance_exceeded(bv,
validate=False) |
source code
|
|
|
|
| decoderate_tolerance_exceeded(bv,
validate=False) |
source code
|
|
|
|
| decodetemp_tolerance_exceeded(bv,
validate=False) |
source code
|
|
|
|
| decodeexpected_height_exceeded(bv,
validate=False) |
source code
|
|
|
|
|
|
|
| decodetimeLastMeasured_month(bv,
validate=False) |
source code
|
|
|
|
| decodetimeLastMeasured_day(bv,
validate=False) |
source code
|
|
|
|
| decodetimeLastMeasured_hour(bv,
validate=False) |
source code
|
|
|
|
| decodetimeLastMeasured_min(bv,
validate=False) |
source code
|
|
|
|
| decodetimeLastMeasured_sec(bv,
validate=False) |
source code
|
|
|
|
|
|
|
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 waterlevel 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
|
|
|
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 = ('dac', 'fid', 'efid', 'timetag_month', 'timetag_d...
|
|
|
fieldListPostgres = ('dac', 'fid', 'efid', 'timetag_month', 't...
|
|
|
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 = {'IGLD-85': '1', 'LAT': '9', 'MHW': '4', 'MLL...
|
|
|
datumDecodeLut = {'0': 'MLLW', '1': 'IGLD-85', '2': 'WaterDept...
|