Skip to content

Add capability to read ADCP dual profile configurations #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 15, 2024
Prev Previous commit
Remove unused code
jmcvey3 committed Mar 13, 2024
commit 2e292b0cf6b4ed36997dcbad14aa5e751705585a
13 changes: 0 additions & 13 deletions mhkit/dolfyn/io/nortek2_lib.py
Original file line number Diff line number Diff line change
@@ -261,19 +261,6 @@ def _check_index(idx, infile, fix_hw_ens=False, dp=False):
hwe[inds[(ib + 1) :]] += 1
ens[inds[(ib + 1) :]] += 1

if not dp:
# This block fixes skips that originate from before this file.
# Check first N id's and correct
delta = max(hwe[:N_id]) - hwe[:N_id]
for d, id in zip(delta, idx["ID"][:N_id]):
if d != 0:
FLAG = True
hwe[id == idx["ID"]] += d
ens[id == idx["ID"]] += d

if np.any(np.diff(ens) > 1) and FLAG:
idx["ens"] = np.unwrap(hwe.astype(np.int64), period=period) - hwe[0]

return dp