Skip to content

Commit

Permalink
Update oceans/filters.py
Browse files Browse the repository at this point in the history
Co-authored-by: Filipe <[email protected]>
  • Loading branch information
kthyng and ocefpaf authored Sep 12, 2023
1 parent b4b1a1e commit cea342e
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_0000_000,
360_000_000_000,
)
elif isinstance(x, pd.Series):
dt = (x.index[1] - x.index[0]) / pd.Timedelta("1H")
Expand Down

0 comments on commit cea342e

Please sign in to comment.