Skip to content

Commit

Permalink
Update filters.py: division number was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
kthyng authored Oct 6, 2023
1 parent f56a02c commit 29820ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oceans/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 29820ce

Please sign in to comment.