diff --git a/echopype/calibrate/cal_params.py b/echopype/calibrate/cal_params.py index ae3d6d4a4..0c861c9e9 100644 --- a/echopype/calibrate/cal_params.py +++ b/echopype/calibrate/cal_params.py @@ -395,9 +395,11 @@ def get_cal_params_EK( # Private function to get fs def _get_fs(): - if "fs_receiver" in vend: - return vend["fs_receiver"] + # If receiver_sampling_frequency recorded, use it + if "receiver_sampling_frequency" in vend: + return vend["receiver_sampling_frequency"] else: + # If receiver_sampling_frequency not recorded, use default value # loop through channel since transceiver can vary fs = [] for ch in vend["channel"]: diff --git a/echopype/convert/set_groups_ek60.py b/echopype/convert/set_groups_ek60.py index 7826b1aec..55387af4b 100644 --- a/echopype/convert/set_groups_ek60.py +++ b/echopype/convert/set_groups_ek60.py @@ -585,6 +585,17 @@ def set_beam(self) -> List[xr.Dataset]: ["channel"], beam_params["gpt_software_version"], ), + "transmit_type": ( + [], + "CW", + { + "long_name": "Type of transmitted pulse", + "flag_values": ["CW"], + "flag_meanings": [ + "Continuous Wave", + ], + }, + ), "beam_stabilisation": ( [], np.array(0, np.byte), @@ -664,17 +675,10 @@ def set_beam(self) -> List[xr.Dataset]: "flag_meanings": ["power only", "angle only", "power and angle"], }, ), - "sample_time_offset": ( + "range_sample_offset": ( ["ping_time"], - ( - np.array(self.parser_obj.ping_data_dict["offset"][ch]) - * np.array(self.parser_obj.ping_data_dict["sample_interval"][ch]) - ), - { - "long_name": "Time offset that is subtracted from the timestamp" - " of each sample", - "units": "s", - }, + np.array(self.parser_obj.ping_data_dict["offset"][ch], dtype=np.int32), + {"long_name": "First sample number"}, ), "channel_mode": ( ["ping_time"], diff --git a/echopype/convert/set_groups_ek80.py b/echopype/convert/set_groups_ek80.py index f5eb424af..67c6d25eb 100644 --- a/echopype/convert/set_groups_ek80.py +++ b/echopype/convert/set_groups_ek80.py @@ -1285,7 +1285,7 @@ def set_vendor(self) -> xr.Dataset: }, ) if "rx_sample_frequency" in param_dict: - ds_table["fs_receiver"] = xr.DataArray( + ds_table["receiver_sampling_frequency"] = xr.DataArray( param_dict["rx_sample_frequency"].astype(float), dims=["channel"], coords={"channel": ds_table["channel"]},