pydata / xarray

N-D labeled arrays and datasets in Python
https://xarray.dev
Apache License 2.0
3.5k stars 1.04k forks source link

Support duplicate dimensions in `.chunk` #9099

Closed mraspaud closed 2 weeks ago

mraspaud commented 3 weeks ago

This PR allows duplicate dimension when chunking an array, when the chunk sizes is provided as a dict. A typical example of the usefulness of this PR is trying to open a netcdf file (with chunking) containing a covariance matrix.

mraspaud commented 3 weeks ago

Any feedback welcome on how I can improve this PR!