From 64afb02bbf78850983839b75f82fd45b1626bb7d Mon Sep 17 00:00:00 2001 From: ruxandra valcu Date: Wed, 6 Dec 2023 10:42:20 +0200 Subject: [PATCH] Fixed a dimension issue --- echopype/mask/seabed.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/echopype/mask/seabed.py b/echopype/mask/seabed.py index b3b201d65..e49a819ac 100644 --- a/echopype/mask/seabed.py +++ b/echopype/mask/seabed.py @@ -545,9 +545,7 @@ def _blackwell(Sv_ds: xr.DataArray, desired_channel: str, parameters: dict = MAX if "rank" in parameters.keys(): rank = parameters["rank"] - print(rlog, tpi, freq, rank) - - channel_Sv = Sv_ds.sel(channel=desired_channel) + channel_Sv = Sv_ds.sel(channel=desired_channel).drop("channel") Sv = channel_Sv["Sv"] r = channel_Sv["echo_range"][0] theta = channel_Sv["angle_alongship"].copy() * 22 * 128 / 180 @@ -640,4 +638,3 @@ def _blackwell(Sv_ds: xr.DataArray, desired_channel: str, parameters: dict = MAX range_filter = (mask["range_sample"] >= up) & (mask["range_sample"] <= lw) mask = mask.where(range_filter, other=True) return mask - \ No newline at end of file