IrishMarineInstitute / pd0-parser

MIT License
2 stars 1 forks source link

New Pd0 formats cause errors #1

Open NBurke1 opened 6 years ago

NBurke1 commented 6 years ago

The following files work fine: http://spiddal.marine.ie/data/adcps/TRDI-WHB600Hz-1323/2017/11/29/TRDI-WHB600Hz-1323_20171129_1039.pd0; //1468 bytes http://spiddal.marine.ie/data/adcps/TRDI-WHB600Hz-1323/2017/11/28/TRDI-WHB600Hz-1323_20171128_1638.pd0; //734 bytes

The following dont: http://spiddal.marine.ie/data/adcps/TRDI-WHB600Hz-1323/2017/11/28/TRDI-WHB600Hz-1323_20171128_1639.pd0; //1046 bytes http://spiddal.marine.ie/data/adcps/TRDI-WHB600Hz-1323/2017/11/29/TRDI-WHB600Hz-1323_20171129_1003.pd0; //7806 bytes

fullergalway commented 6 years ago

I verified that the file TRDI-WHB600Hz-1323_20171128_1639.pd0 parses OK with the USF-COT python pd0 parser, but not with this one.

fullergalway commented 6 years ago

Looks like we need to add support for types 0x0103 (first leader), 0x0203 (wave ping), and 0x0303 (last leader) (these are not supported by the USF-COT parser either)