pp-mo / ncdata

Free and efficient exchange of data between netcdf files, Xarray and Iris
https://ncdata.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

Fixes to enable xarray interfacing #32

Closed pp-mo closed 10 months ago

pp-mo commented 10 months ago

This finally fixes problems with masked data.

The netcdf interface now presents 'raw' variable data in the ncdata objects, since xarray accesses nc4 files that way. Meanwhile, to suit the Iris interface, the mask+scale operations are now implemented in the NcVariable._data_array property interface, because Iris accesses nc4 that way.

Also added specific purpose-built dataset testcases for

Meanwhile, the whole iris <-> xarray roundtrip tests idea seems to need a review. iris-xr-iris is more-or-less feasible, but xr-iris-xr introduces so many problems, I have disabled all of that for now.