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

Encoding of coordinate variables fails #27

Open
forman opened this issue Dec 11, 2020 · 1 comment
Open

Encoding of coordinate variables fails #27

forman opened this issue Dec 11, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@forman
Copy link
Member

forman commented Dec 11, 2020

Encoding of coordinate variables fails when writing datasets to e.g. S3. This error occurs only after with xcube 0.6.1 that introduced the zarr >=2.6.1 requirement. (Which fixed xcube-dev/xcube#360.)

Root cause is obviously that the SH chunk store creates coordinate variables as static values. In this case, both compressor and filters of the array's encoding in .zarray are set to None. This is because we use uncompressed, bytified, static numpy arrays to represent the values for keys that point to coordinate variuables.

A workaround is to use a compressor (although not needed), then that error doesn't appear anymore.

I will file a Zarr issue too...

@forman forman added the bug Something isn't working label Dec 11, 2020
@forman forman self-assigned this Dec 11, 2020
@forman forman closed this as completed in 2f4042c Dec 11, 2020
forman added a commit that referenced this issue Dec 11, 2020
@AliceBalfanz
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants