-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Labels
Description
Hello, Thanks for creating the package!
I just received several Nortek Signature 500 ADCP files to process and each of them gives the same error (details below). I have updated to the most recent version and tried to call the command in several ways. I have tested the example signature files in the examples directory and they can be read without error. I am hoping you might have some advice on troubleshooting this issue.
Commands I have tried (I have replaced file and directory names):
>>> ds = api.read("FILE.ad2cp")
>>> ds = dolfyn.read("FILE.ad2cp")
>>> ds = dolfyn.io.nortek2.read_signature("FILE.ad2cp")
>>> dolfyn.io.nortek2.read_signature("FILE.ad2cp", rebuild_index=True)
While running it skips a lot of pings e.g.
warnings.warn("Skipped ping (ID: {}) in file {} at ensemble {}."
venvdir/site-packages/mhkit/dolfyn/io/nortek2_lib.py:176: UserWarning: Skipped ping (ID: 31) in file FILE.ad2cp at ensemble 64257.
The message it errors out with is always the same:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "venvdir/site-packages/mhkit/dolfyn/io/api.py", line 105, in read
return func(fname, userdata=userdata, nens=nens, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "venvdir/site-packages/mhkit/dolfyn/io/nortek2.py", line 68, in read_signature
rdr = _Ad2cpReader(filename, rebuild_index=rebuild_index, debug=debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "venvdir/site-packages/mhkit/dolfyn/io/nortek2.py", line 136, in __init__
self._config = lib._calc_config(self._index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "venvdir/site-packages/mhkit/dolfyn/io/nortek2_lib.py", line 493, in _calc_config
raise Exception("beams_cy are not identical for id: 0x{:X}."
Exception: beams_cy are not identical for id: 0x17.