Replies: 1 comment
-
Maybe related to ds.rolling() |
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
-
I have a Xarray that has 3 dimensions (time, x and y) - they are basically a stack of images. I want to operate in a "windowed" manner on pairs of images.
Basically take a pair, say the first two "time" images, and call a function on a 5x5 window over them.
In numpy I would do this by simply slicing appropriately and computing my metric by first forming "patches":
Here N is the window size, 5 for instance. Then computing my metric:
However, I have difficultly translating this to dask/xarray and I would like some help. My first intuition is to use
map_overlay
but I don't know how to deal with the fact that the output would only be the center pixel of the whole patch.Beta Was this translation helpful? Give feedback.
All reactions