Skip to content

Commit

Permalink
Fixed a dimension issue (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruxandra-valcu authored Dec 6, 2023
1 parent 2d681ea commit cb6e1bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions echopype/mask/seabed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit cb6e1bf

Please sign in to comment.