[x] This PR addresses an already opened issue (for bug fixes / features)
This PR fixes #xyz
[x] (If applicable) Documentation has been added / updated (for bug fixes / features).
[ ] (If applicable) Tests have been added.
[x] This PR does not seem to break the templates.
[x] CHANGES.rst has been updated (with summary of main changes).
[x] Link to issue (:issue:number) and pull request (:pull:number) has been added.
What kind of change does this PR introduce?
original_shape and chunksizes don't play well together. This PR makes sure that original_shape is always removed before saving a dataset.
Also, (maybe new in the latest version of xarray and engine netcdf4?), it appears that dropping chunksizes leads to unexpected behaviours, such as bloated file size and incorrect chunking on disk. Thus, the chunksizes encoding was made more explicit.
Pull Request Checklist:
number
) and pull request (:pull:number
) has been added.What kind of change does this PR introduce?
original_shape
andchunksizes
don't play well together. This PR makes sure thatoriginal_shape
is always removed before saving a dataset.xarray
and enginenetcdf4
?), it appears that droppingchunksizes
leads to unexpected behaviours, such as bloated file size and incorrect chunking on disk. Thus, thechunksizes
encoding was made more explicit.Does this PR introduce a breaking change?
Other information:
Related Issues: https://github.com/pydata/xarray/issues/8385 https://github.com/pydata/xarray/issues/8062