Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified examples/data/dolfyn/test_data/AWAC_test01.nc
Binary file not shown.
Binary file modified examples/data/dolfyn/test_data/AWAC_test01_clean.nc
Binary file not shown.
Binary file modified examples/data/dolfyn/test_data/AWAC_test01_earth2inst.nc
Binary file not shown.
Binary file modified examples/data/dolfyn/test_data/AWAC_test01_earth2principal.nc
Binary file not shown.
Binary file modified examples/data/dolfyn/test_data/AWAC_test01_inst2beam.nc
Binary file not shown.
Binary file modified examples/data/dolfyn/test_data/AWAC_test01_ud.nc
Binary file not shown.
Binary file modified examples/data/dolfyn/test_data/H-AWAC_test01.nc
Binary file not shown.
Binary file modified examples/data/dolfyn/test_data/dual_profile.nc
Binary file not shown.
4 changes: 2 additions & 2 deletions mhkit/dolfyn/io/nortek.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def read_vec_sysdata(self):
dv["error"][c],
dv["status"][c],
ds["AnaIn"][c],
) = unpack(self.endian + "2H3hH2BH", byts[8:])
) = unpack(self.endian + "3H3h2BH", byts[8:])
self.checksum(byts)

def sci_vec_sysdata(self):
Expand Down Expand Up @@ -1085,7 +1085,7 @@ def read_awac_profile(self):
dv["status"][c],
p_lsw,
dv["temp"][c],
) = unpack(self.endian + "7HBB2H", byts[8:28])
) = unpack(self.endian + "5H2hBBHh", byts[8:28])
dv["pressure"][c] = 65536 * p_msb + p_lsw
# The nortek system integrator manual specifies an 88byte 'spare'
# field, therefore we start at 116.
Expand Down
6 changes: 3 additions & 3 deletions mhkit/dolfyn/io/nortek2_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def __call__(self, array):
),
(
"temp",
"H",
"h",
[],
_LinFunc(0.01, dtype=dt32),
"degree_C",
Expand Down Expand Up @@ -233,7 +233,7 @@ def __call__(self, array):
("nominal_corr", "B", [], None, "%"),
(
"temp_press",
"B",
"b",
[],
_LinFunc(0.2, -20, dtype=dt32),
"degree_C",
Expand Down Expand Up @@ -300,7 +300,7 @@ def __call__(self, array):
),
(
"temp",
"H",
"h",
[],
_LinFunc(0.01, dtype=dt32),
"degree_C",
Expand Down