Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to enable xarray interfacing #32

Merged
merged 5 commits into from
Jan 2, 2024
Merged

Fixes to enable xarray interfacing #32

merged 5 commits into from
Jan 2, 2024

Conversation

pp-mo
Copy link
Owner

@pp-mo pp-mo commented Jan 1, 2024

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

  • masking, including NaNs
  • scaling, including dtype conversion.

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.

@pp-mo pp-mo merged commit 62a311a into main Jan 2, 2024
2 checks passed
@pp-mo pp-mo deleted the problems_ongoing branch January 3, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant