Add note on how to save catalog datasets to zarr3#15
Open
leifdenby wants to merge 1 commit into
Open
Conversation
Explain how to avoid codec errors when saving v2 datasets in the catalog as Zarr v3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Describe your changes
I came across an issue when trying to save a subset of the radklim 5min dataset locally just now when starting up an ipython REPL with:
It turns out the issue arises because the default with our current requirements is to install
zarr==3, but the radklim dataset on EWC is in zarr2. Apparently it has changed how zarr represents the encoding (compression) of dataset, so that theencodingattribute must be changed for each variable. This is only an issue when you open a zarr2 dataset from the catalog and try to save into zarr3 format. Reading the zarr2 dataset while having zarr3 installed works just fine. I think we want to support both having zarr2 and zarr3 in the catalog since the zarr community is in a transition phase between the two formats (or at least that is my impression). I suggest adding a note to the README about how to work around this issue.No change of dependencies needed.
Issue Link
no related issue
Type of change
Checklist before requesting a review
pullwith--rebaseoption if possible).Checklist for reviewers
Each PR comes with its own improvements and flaws. The reviewer should check the following:
Author checklist after completed review
reflecting type of change (add section where missing):
Checklist for assignee