-
Notifications
You must be signed in to change notification settings - Fork 54
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
Xarray/Iris incompatibilities around integer arrays #418
Labels
bug
Code that is failing or producing the wrong result
Comments
I think I've handled this in the past by replacing the masked integer array with a filled array in the iris cube before converting to xarray, but I can't find the notebook at the moment. I will try to recreate it as a proof of concept |
This should produce results identical to xarray>=v2023.06 for older versions, and without the warning message |
I have now added a fix to this as part of #378 |
Fixed with #378 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When converting between
xarray.DataArray
andiris.cube.Cube
for integer arrays, a bug inxarray
(according to @w-k-jones prior to2023.06
) causes an exception to be raised. @w-k-jones has provided a pretty detailed description of the issue here: #378 (comment) .I'm moving this to a new issue so that we can figure out what to do, which we will for some examples that @w-k-jones has added with #378 and with the xarray transition for segmentation that I have worked on with #417.
As far as I see it, we have the following options:
The text was updated successfully, but these errors were encountered: