-
Notifications
You must be signed in to change notification settings - Fork 382
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
Fix precision for writing field attributes #5251
Fix precision for writing field attributes #5251
Conversation
It is necessary that the precision of floating-point attributes match the precision of the field they are associated with. In particular, when the `_FillValue` has a different precision from the field it is associated with, PIO complains and will not add the attribute.
Testing a |
TestingThe fix does seem to have worked as expected. See results in:
a 1-month MPAS-O simulation in which
However, I am not seeing the expected fill values in the fields themselves, e.g.:
This suggests that work is still needed in |
@cbegeman, could you take a look at this when you can? If you want to run a test, that's fine. If you prefer to look at my test results, that's okay, too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix precision for writing field attributes It is necessary that the precision of floating-point attributes match the precision of the field they are associated with. In particular, when the _FillValue has a different precision from the field it is associated with, PIO complains and will not add the attribute. Fixes #5235 [BFB]
passes sanity testing, merged to next |
merged to master |
It is necessary that the precision of floating-point attributes match the precision of the field they are associated with. In particular, when the
_FillValue
has a different precision from the field it is associated with, PIO complains and will not add the attribute.Fixes #5235
[BFB]