NCAR / pynio

PyNIO is a multi-format data I/O package with a NetCDF-style interface
http://www.pyngl.ucar.edu/Nio.shtml
Apache License 2.0
112 stars 37 forks source link

Can i use scipy instead of pynio engine in xarray #56

Closed Jayayadav33 closed 1 year ago

Jayayadav33 commented 1 year ago

I am trying to read a hdf5 file. But there is an error for the line: data = xr.open_dataset(filename, engine='pynio') Error:- ValueError: unrecognized engine pynio must be one of: ['netcdf4', 'scipy', 'rasterio', 'store'] I am using windows 11 and unable to install pynio in anaconda. Can i use scipy instead of pynio in the above command??

kafitzgerald commented 1 year ago

I'd look into h5py which should work on Windows.

This FAQ in the xarray docs might be a good starting point.

Jayayadav33 commented 1 year ago

If the files are .hdf then what engine to use??

kafitzgerald commented 1 year ago

The xarray FAQ linked above has info on what backends/engines will work for various file types (including HDF5). The link should take you directly to that portion of the FAQ, but you may need to search a bit if not.

If you have further usage questions regarding xarray, I'd suggest posting in the xarray GitHub Discussions.

Closing since this is more of an xarray question.