exactextract icon indicating copy to clipboard operation
exactextract copied to clipboard

Compatibility with NetCDFs written with h5netcdf engine?

Open njdepsky opened this issue 7 months ago • 1 comments

Hi,

In processing and saving n-dimensional datasets with xarray, the 'h5netcdf' engine results in vastly faster read/write times for NetCDF files. I love exact_extract's ability to perform zone stats on NC paths, but it doesn't seem to be compatible with NCs written with the h5 engine.

ds.to_netcdf(filepath, engine='h5netcdf')

Any tips or plans to integrate this as a feature?

Thanks.

njdepsky avatar Aug 22 '25 15:08 njdepsky

That's weird, they should be compliant netCDF files, h5netcdf just uses h5py directly instead of netCDF4.

  1. What is the error you are seeing?
  2. Can you ncdump -h the file you're working with?

dcherian avatar Aug 22 '25 15:08 dcherian