libais icon indicating copy to clipboard operation
libais copied to clipboard

list index out of range for ais.stream.decode

Open edowson opened this issue 6 years ago • 0 comments

I'm trying decode a single NMEA AIS message using libais, but can't seem to get a proper output.

Code:

import warnings
warnings.filterwarnings("ignore")
import ais.stream

nmea1 = '!AIVDM,1,1,,A,33P;Tw0tjBQO22:E7dm66DrB20UP,0*2E'
output = [msg for msg in ais.stream.decode(nmea1)]
print(output)

Output:

[]
list index out of range
list index out of range
list index out of range
...

edowson avatar Jan 10 '20 17:01 edowson