Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kthyng committed Sep 12, 2023
2 parents 4a30823 + cea342e commit a142637
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 a142637

Please sign in to comment.