-
Notifications
You must be signed in to change notification settings - Fork 3
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
Enable use of _FillValue for identifying missing values in input files #21
Conversation
This PR should not be merged until after geoschem/geos-chem#1255. |
This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days, it will be closed. You can add the "long term" tag to prevent the Stale bot from closing this issue. |
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
This update also include minor changes to how fname set in the metadata utilities file. Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
930b556
to
98b7785
Compare
The HEMCO PR that goes with this update is now ready for review at geoschem/HEMCO#171. I made @msulprizio reviewer for both since they go together. |
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.
These changes look good to merge. Thank you for adding the more detailed error messages here too!
This PR is 1 of 2 for GCHP super-project. See instructions here:
geoschem/GCHP#258
Description
For single precision attribute retrieval there is now handling for double precision input. This update also expands error handling in FileMetadataUtilities to print filename in all calls to _ASSERT and _FAIL. Fail messages about unsupported attribute type now specify the unique type constraint per function.
Related Issue
Closes geoschem/GCHP#183
Motivation and Context
This update prevents run fail when retrieving _FillValue from import files containing double precision data used GCHP. It also expands the error handling so that failure on reading import attributes always results in a unique message with the filename, making it easier to find and fix the problem.
How Has This Been Tested?
Tested in GCHP branch with upgraded GMAO libraries going into 14.0.0.
Types of changes
Additional information / dependencies
In order for this update to fix GFAS there needs to be a modified version of one of the GEOS-Chem input files. I will submit that change as a GEOS-Chem repo PR.
These changes have been submitted to GMAO in GEOS-ESM#1506.