lkilcher / dolfyn

A library for oceanographic doppler instruments such as Acoustic Doppler Profilers (ADPs, ADCPs) and Acoustic Doppler Velocimeters (ADVs).
BSD 3-Clause "New" or "Revised" License
43 stars 26 forks source link

Why do '7f79' bytes appear in an RDI file where '7f7f' is expected? #7

Closed lkilcher closed 2 years ago

lkilcher commented 7 years ago

A file that I received from some collaborators has a different header start byte than what is indicated in the RDI documentation. I still do not understand why this is, but branch debug-7f79 resolves the issue for the file they supplied. For now I'm going to leave this fix in that branch until I understand the source of the discrepancy.

lkilcher commented 7 years ago

@rmduarte : I think you should be able to load your files by switching to the debug-7f79 branch. I'm still interested to know the details of the hardware and software you're using. In particular: can you let me know the model name/number of the instrument, and any software you used to configure the instrument, read data from the instrument, or post-process the data?

rmduarte commented 7 years ago

Hi Levi. Thanks a lot for your support. We were able to read the data file. I don't have the details about the model used, but Jeff will contact you later with that information.

mmartini-usgs commented 7 years ago

797F (depending on your endianness) is the ID for waves packets.

mmartini-usgs commented 7 years ago

You can split the data with this code: http://trac.nccoos.org/dataproc/browser/DPWP/trunk/DPWP/ADCP_splitter/pd0.py

lkilcher commented 2 years ago

I believe the fix for this has been merged into master, at some point.