From 826427d4023bebc9f08d88fc2605ff6332bfea1b Mon Sep 17 00:00:00 2001 From: Dan Nowacki Date: Fri, 8 Nov 2024 10:49:54 -0800 Subject: [PATCH] simplify --- stglib/eofe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stglib/eofe.py b/stglib/eofe.py index a570ee70..5eb48cbc 100644 --- a/stglib/eofe.py +++ b/stglib/eofe.py @@ -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})