Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
dnowacki-usgs committed Nov 8, 2024
1 parent 79e654f commit 826427d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stglib/eofe.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,9 @@ def calc_cor_bin_height(ds):
# speed up finding sound speed by taking mean across sample dim then expand dims after
spd2 = gsw.sound_speed(
ds.attrs["average_salinity"],
ds["Temperature_C"].mean(dim="sample"),
p.mean(dim="sample"),
).T
ds["Temperature_C"].mean(dim="sample").values,
p.mean(dim="sample").values,
)
soundspd = (
xr.DataArray(spd2, dims=["bins", "time"])
.expand_dims({"sample": ds.sample})
Expand Down

0 comments on commit 826427d

Please sign in to comment.