schwehr / libais

C++ decoder for Automatic Identification System for tracking ships and decoding maritime information
Other
215 stars 94 forks source link

list index out of range for ais.stream.decode #200

Open edowson opened 4 years ago

edowson commented 4 years ago

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
...