G3 format has different endian!
The G3 gliders are little-endian, whereas the G2 and before were big-endian. They also do not seem to terminate with a D any more.
See the changes in slocum.py here: https://github.com/c-proof/pyglider/pull/105, but mostly just having a switch to do things like float32be
or float32le
, instead of just float32
.
Note that pyglider will likely switch to using dbdreader https://dbdreader.readthedocs.io/en/latest/. It has a C component, but is probably 10x faster.