Skip to content

Commit

Permalink
Use DataArray when creating DataVariable.
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan authored Aug 11, 2021
1 parent 799e90b commit 17a5b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echopype/preprocess/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _freq_MVBS(ds, rint, pbin):
sv = 10 ** (ds["Sv"] / 10) # average should be done in linear domain
sv.coords["range_meter"] = (
["range_bin"],
ds_Sv["range"].isel(frequency=0, ping_time=0),
ds_Sv["range"].isel(frequency=0, ping_time=0).data,
)
sv = sv.swap_dims({"range_bin": "range_meter"})
sv_groupby_bins = (
Expand Down

0 comments on commit 17a5b17

Please sign in to comment.