Given a xarray dataset opened from zarr, how to determine store and group?

Like the title says, I am interested in discovering the store and group from an xarray dataset. This would only be relevant for zarr-backed xarray datasets.

Any idea if this is possible? I tried digging around, but no luck yet.

1 Like

Have you checked the dataset .encoding attribute? That’s where Xarray should be storing this information. If it’s not there, this would be a good issue to open on the Xarray issue tracker.

Thanks @rabernat.

see: Given zarr-backed Xarray determine store and group · Issue #6916 · pydata/xarray · GitHub