opendrift icon indicating copy to clipboard operation
opendrift copied to clipboard

Jul xarray unstructured

Open Boorhin opened this issue 3 years ago • 0 comments

I have tried to adapt the netcdf4 unstructured reader to the xarray method. In addition xarray will be able to read CF compliant files with other engines such as "scipy", "pydap", "h5netcdf", "pynio", "cfgrib", "pseudonetcdf" and "zarr" according to documentation: http://xarray.pydata.org/en/latest/generated/xarray.open_dataset.html#xarray.open_dataset

The modifications are minor. The only issues with xarray are linked with dimensions and variables having the same names. This is a known bug and I believe the user could always fall back onto the regular netcdf4 reader.

Boorhin avatar Dec 01 '21 16:12 Boorhin