[WIP] Fix problem with wrong chunksizes when using rolling_window on dask.array #2532
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
whats-new.rst
for all changesShort summary
The two rolling-window functions for
dask.array
will be fixed to preserve
dask.array
chunksizes.Long summary
The specific initial problem with chunksizes and
interpolate_na()
in #2514 is caused by the padding done inxarray/xarray/core/dask_array_ops.py
Lines 74 to 85 in 5940100
which adds a small array with a small chunk to the initial array.
There is another related problem where
DataArray.rolling()
changes the size and distribution ofdask.array
chunks which stems from this codexarray/xarray/core/dask_array_ops.py
Line 23 in b622c5e
For some (historic) reason there are these two rolling-window functions for
dask
. Both need to be fixed to preserve chunksize of adask.array
in all cases.