Skip to content

Zarr groups (grouped) loader and operations #7341

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

Closed
itsgifnotjiff opened this issue Dec 1, 2022 · 4 comments
Closed

Zarr groups (grouped) loader and operations #7341

itsgifnotjiff opened this issue Dec 1, 2022 · 4 comments
Labels
io topic-DataTree Related to the implementation of a DataTree class topic-documentation topic-zarr Related to zarr storage library

Comments

@itsgifnotjiff
Copy link

Is your feature request related to a problem?

I work in geospatial sciences and use Zarr, Xarray, NetCDF etc. but it is at the moment very hard to create a Xarray Dataset that contains multiple grids and dimensions.

Describe the solution you'd like

Ideally I would love to be able to open Zarr store with groups where attributes are preserved and identified by Xarray for easier interoperability with HoloViz and others.

Describe alternatives you've considered

Right now I try and add the groups of a Zarr store one by one as variables but that is hacky and does not necessarily preserve attributes.

Additional context

No response

@keewis
Copy link
Collaborator

keewis commented Dec 1, 2022

you might be interested in datatree, then.

@TomNicholas, as we've recently seen an uptake in issues / questions about this, I wonder if we can somehow increase the visibility of datatree? For example, we could mention it in the description of open_dataset's group parameter.

@TomNicholas
Copy link
Member

@keewis #7338 mentions datatree, so we could refer people back to there from now on?

@dcherian
Copy link
Contributor

dcherian commented Dec 1, 2022

I like the idea of linking to it in the docstring. Doesn't hurt to have more places where people can find info.

@TomNicholas TomNicholas added the topic-DataTree Related to the implementation of a DataTree class label Dec 28, 2022
@TomNicholas TomNicholas added topic-zarr Related to zarr storage library io labels Jan 13, 2023
@TomNicholas
Copy link
Member

TomNicholas commented Dec 5, 2024

For example, we could mention it in the description of open_dataset's group parameter.

We can't really do this because the open_dataset docstring doesn't explicitly include group. I think that's because it's technically a backend-specific kwarg?

Regardless I think this original issue is closed by the recent release of xarray.DataTree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io topic-DataTree Related to the implementation of a DataTree class topic-documentation topic-zarr Related to zarr storage library
Projects
None yet
Development

No branches or pull requests

4 participants