-
Notifications
You must be signed in to change notification settings - Fork 292
convert_units does not convert valid_min/valid_max #6411
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
Comments
Looking at the code for coordinates, it looks like there is a similar issue there: Lines 715 to 750 in dbeda2f
|
I would be happy to make a pull request to fix this, if you agree that it should be fixed? |
@bouweandela This seems reasonable, and may also touch on If you've got the cycles and the motivation then feel free to unblock your use case 👍 |
Great! I opened a pull request in #6416 |
🐛 Bug Report
iris.cube.Cube.convert_units
does not convert the valid_min/valid_max attributes. This can lead to the entire cube becoming masked if it is saved and loaded again because the data values are outside the valid range.How To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
I would expect convert_units to also convert the valid_min and valid_max attributes.
Environment
Additional context
Click to expand this section...
The text was updated successfully, but these errors were encountered: