diff --git a/echopype/convert/set_groups_ad2cp.py b/echopype/convert/set_groups_ad2cp.py index 2828c74c7..08ede041f 100644 --- a/echopype/convert/set_groups_ad2cp.py +++ b/echopype/convert/set_groups_ad2cp.py @@ -245,13 +245,6 @@ def set_platform(self) -> xr.Dataset: "roll": "roll", } ) - ds = ds.assign_attrs( - { - "platform_name": self.ui_param["platform_name"], # type: ignore - "platform_type": self.ui_param["platform_type"], # type: ignore - "platform_code_ICES": self.ui_param["platform_code_ICES"], # type: ignore - } - ) return set_time_encodings(ds) def set_beam(self) -> List[xr.Dataset]: diff --git a/echopype/convert/set_groups_base.py b/echopype/convert/set_groups_base.py index 5c4808412..7c520d17b 100644 --- a/echopype/convert/set_groups_base.py +++ b/echopype/convert/set_groups_base.py @@ -41,7 +41,6 @@ def __init__( self.engine = engine self.compress = compress self.overwrite = overwrite - self.ui_param = params # parsed data written directly to zarr object self.parsed2zarr_obj = parsed2zarr_obj @@ -71,7 +70,6 @@ def set_toplevel(self, sonar_model, date_created=None) -> xr.Dataset: "summary": "", "title": "", "date_created": np.datetime_as_string(date_created, "s") + "Z", - "survey_name": self.ui_param["survey_name"], } # Save ds = xr.Dataset() diff --git a/echopype/convert/set_groups_ek80.py b/echopype/convert/set_groups_ek80.py index c0721b06d..f6df27213 100644 --- a/echopype/convert/set_groups_ek80.py +++ b/echopype/convert/set_groups_ek80.py @@ -305,9 +305,7 @@ def set_platform(self) -> xr.Dataset: ) # Collect variables - if self.ui_param["water_level"] is not None: - water_level = self.ui_param["water_level"] - elif "water_level_draft" in self.parser_obj.environment: + if "water_level_draft" in self.parser_obj.environment: water_level = self.parser_obj.environment["water_level_draft"] else: water_level = np.nan