pydata / xarray

N-D labeled arrays and datasets in Python
https://xarray.dev
Apache License 2.0
3.51k stars 1.05k forks source link

Zarr groups (grouped) loader and operations #7341

Open itsgifnotjiff opened 1 year ago

itsgifnotjiff commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@keewis https://github.com/pydata/xarray/pull/7338 mentions datatree, so we could refer people back to there from now on?

dcherian commented 1 year ago

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