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

Support for string arrays with categorize #76

Open
andreasg123 opened this issue Feb 20, 2021 · 1 comment
Open

Support for string arrays with categorize #76

andreasg123 opened this issue Feb 20, 2021 · 1 comment

Comments

@andreasg123
Copy link

It would be great if you could add support for string arrays that have been categorized with numcodecs.Categorize: https://zarr.readthedocs.io/en/stable/tutorial.html#string-arrays

In .zarray, they are represented like this:

"filters":[{"astype":"|u1","dtype":"|O","id":"categorize","labels":["abc","bcd","cde","def"]}]

A workaround would be to store an integer array in the Zarr hierarchy. The mappings would need to be put in a JSON file that is not part of the Zarr specification.

Is this something on your roadmap?

@GibbonJojo
Copy link

Is there an update on this issue?
I second the request to add support for string arrays.

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