Skip to content

Commit

Permalink
AZFP: add missing mandatory Beam_group1 variables (#1102)
Browse files Browse the repository at this point in the history
* AZFP: add mandatory beam_type and transmit_type

* AZFP, add channel dimension to beam_type for consistency with EK60 & EK80

* Add beam_direction_x/y/z Beam_group1 variables to AZFP, setting them to nan
  • Loading branch information
emiliom authored Aug 4, 2023
1 parent eba3cca commit 389802a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions echopype/convert/set_groups_azfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,32 @@ def set_beam(self) -> List[xr.Dataset]:
"standard_name": "sound_frequency",
},
),
"beam_type": (
["channel"],
[0] * len(self.channel_ids_sorted),
{
"long_name": "Beam type",
"flag_values": [0, 1],
"flag_meanings": [
"Single beam",
"Split aperture beam",
],
},
),
**{
f"beam_direction_{var}": (
["channel"],
[np.nan] * len(self.channel_ids_sorted),
{
"long_name": f"{var}-component of the vector that gives the pointing "
"direction of the beam, in sonar beam coordinate "
"system",
"units": "1",
"valid_range": (-1.0, 1.0),
},
)
for var in ["x", "y", "z"]
},
"backscatter_r": (
["channel", "ping_time", "range_sample"],
np.array(N, dtype=np.float32),
Expand Down Expand Up @@ -382,6 +408,17 @@ def set_beam(self) -> List[xr.Dataset]:
"valid_min": 0.0,
},
),
"transmit_type": (
[],
"CW",
{
"long_name": "Type of transmitted pulse",
"flag_values": ["CW"],
"flag_meanings": [
"Continuous Wave",
],
},
),
"beam_stabilisation": (
[],
np.array(0, np.byte),
Expand Down

0 comments on commit 389802a

Please sign in to comment.