Skip to content

phony_dims must be specified when opening HDF5 file without dimension scales #10049

Closed
@asteiker

Description

@asteiker

What is your issue?

Hello, I am in the xarray.DataTree() fan club(!) and have been starting to update existing tutorials to work NASA ICESat-2 HDF5 data in xarray, transitioning from earlier xarray.open_dataset() guidance that only allowed for a single group to be specified.

I was hoping ICESat-2 files would just open out of the box with datatree now, but I get an error unless I specify phony_dims:

dt = xr.open_datatree(file, phony_dims='sort')
(see full notebook here , or you could download an example file here)

@eni-awowale provided some helpful guidance, and sounds like it may be an issue between interoperability with the hdf5 and netcdf-c library.

Since xarray can already detect phony_dims, we were wondering if this could be a reasonable add to the h5netcdf backend engine. This could greatly streamline HDF5 users' workflow so that files can open out of the box w/o needing to specify additional kwargs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions