Skip to content

Support pyfive as h5netcdf backend #11243

@BSchilperoort

Description

@BSchilperoort

What is your issue?

Recently, a pure Python HDF5 file reader "pyfive" has become available as a backend for h5netcdf, making h5py optional.

However, xarray still needs h5py (and seems to assume it is available if h5netcdf is installed).

xarray uses h5py in only a few places for checking dtypes.
The pyfive equivalent function for this is pyfive.h5t.check_dtype (replacing h5py.check_dtype).

The following function is also used;

h5py.special_dtype(vlen=str)

which does not have a pyfive equivalent, but will always evaluate to;

np.dtype('O', metadata={'vlen': str})

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions