Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compressor options in the .encoding dictionaries of a source xr.Dataset are not exploited by the rechunker #95

Open
ghiggi opened this issue Aug 18, 2021 · 1 comment

Comments

@ghiggi
Copy link
Contributor

ghiggi commented Aug 18, 2021

I noticed that when a Zarr store is read into a xr.Dataset (with compressor options present in each DataArray.encoding), and the xr.Dataset is provided as source to the rechunker, the compressor options are discarded in favour of a default
Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0).
Would be useful if the existing compressor options are exploited when saving the new zarr arrays.

@rabernat
Copy link
Member

rabernat commented Sep 8, 2021

Hi @ghiggi and thanks for the comment! Sorry it took so long to respond--several of us were on vacation in August.

I agree it would be useful to exploit xarray encoding options. We would welcome a PR to implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants