From 29820ce571811e88de656944d0001f5f294238b1 Mon Sep 17 00:00:00 2001 From: Kristen Thyng Date: Fri, 6 Oct 2023 10:59:33 -0500 Subject: [PATCH] Update filters.py: division number was wrong --- oceans/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oceans/filters.py b/oceans/filters.py index 894e361..ffb376a 100644 --- a/oceans/filters.py +++ b/oceans/filters.py @@ -620,7 +620,7 @@ def pl33tn(x, dt=1.0, T=33.0, mode="valid", t=None): # find dt in units of hours if isinstance(x, xr.DataArray): dt = (x.cf["T"][1] - x.cf["T"][0]) / np.timedelta64( - 360_000_000_000, + 3_600_000_000_000, ) elif isinstance(x, pd.Series): dt = (x.index[1] - x.index[0]) / pd.Timedelta("1H")