Skip to content

Commit

Permalink
use channel all for ek80 sonar group
Browse files Browse the repository at this point in the history
  • Loading branch information
ctuguinay committed Dec 30, 2024
1 parent a9c2650 commit 2959453
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions echopype/convert/set_groups_ek80.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def set_sonar(self, beam_group_type: list = ["power", None]) -> xr.Dataset:
# Create dataset
sonar_vars = {
"frequency_nominal": (
["channel"],
["channel_all"],
var["transducer_frequency"],
{
"units": "Hz",
Expand All @@ -237,21 +237,21 @@ def set_sonar(self, beam_group_type: list = ["power", None]) -> xr.Dataset:
},
),
"transceiver_serial_number": (
["channel"],
["channel_all"],
var["serial_number"],
{
"long_name": "Transceiver serial number",
},
),
"transducer_name": (
["channel"],
["channel_all"],
var["transducer_name"],
{
"long_name": "Transducer name",
},
),
"transducer_serial_number": (
["channel"],
["channel_all"],
var["transducer_serial_number"],
{
"long_name": "Transducer serial number",
Expand All @@ -261,8 +261,8 @@ def set_sonar(self, beam_group_type: list = ["power", None]) -> xr.Dataset:
ds = xr.Dataset(
{**sonar_vars, **beam_groups_vars},
coords={
"channel": (
["channel"],
"channel_all": (
["channel_all"],
self.sorted_channel["all"],
self._varattrs["beam_coord_default"]["channel"],
),
Expand Down

0 comments on commit 2959453

Please sign in to comment.