-
An example:
I would like to have a 3-month average instead:
A solution would be (if implemented):
Or, is there a workaround? In real life, |
Beta Was this translation helpful? Give feedback.
Answered by
keewis
Nov 15, 2023
Replies: 2 comments
-
This looks like the common boundary condition, for which I'd use da.pad({"time": 1}, mode="wrap").rolling(time=3, min_periods=2, center=True).mean().isel(time=slice(1, -1)) This should work with any kind of duck array, including |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yt87
-
Thanks, this works for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This looks like the common boundary condition, for which I'd use
DataArray.pad
:This should work with any kind of duck array, including
dask
andnumpy
.