First, thanks for your work on simpleais, it is quite useful.
I noticed that simpleais reports bad longitude/latitude values for message 27. The root cause appears to be that _parse_lon/_parse_latuse a scale factor of 4 (10^4) regardless of message type, which gives incorrect results for message 27. Message 27 longitude/latitude has a lower resolution (degrees/10) than other AIS message types (degrees/10000).
First, thanks for your work on
simpleais
, it is quite useful.I noticed that
simpleais
reports bad longitude/latitude values for message 27. The root cause appears to be that_parse_lon
/_parse_lat
use a scale factor of 4 (10^4) regardless of message type, which gives incorrect results for message 27. Message 27 longitude/latitude has a lower resolution (degrees/10) than other AIS message types (degrees/10000).Excerpt from the standard:
Cheers