chgres_cube: Add a check at static data read for incompatible old static data#911
Conversation
…old static data. Program successfully errors when used with incompatible data.
|
And you tested this on your problem case? Can you note that under the 'tests conducted' section. |
|
@LarissaReames-NOAA - I just have three minor comments. Once you address them I can merge. |
|
Please merge the latest updates from develop. Then, I will approve and merge. |
|
Doxygen now builds without error using 5c99fb6. |
Done. |
GeorgeGayno-NOAA
left a comment
There was a problem hiding this comment.
Looks good. Will merge.
|
@LarissaReames-NOAA and @BenjaminBlake-NOAA Is this fix required for RRFSv1? If so, I will need to update the tag: https://github.com/ufs-community/UFS_UTILS/releases/tag/ufs_utils_1_12_2 |
|
@GeorgeGayno-NOAA Since this issue came about after PR #873 was merged, I don't think so. The tag for RRFSv1 was created just before the changes associated with 873. |
DESCRIPTION OF CHANGES:
chgres_cube would produce incorrect surface data or fail with an unhelpful message in debug mode when used with old static data after PR #873 . I added a check in the read of the static fields that looks for any points where landfrac > 0 but static data = -999 (missing data). The program now fails at this point when used with incompatible static data and provides a useful error message directing the user to create new static data with an up-to-date UFS_UTILS build.
TESTS CONDUCTED:
If there are changes to the build or source code, the tests below must be conducted. Contact a repository manager if you need assistance.
Also tested with RRFS grib2 input data interpolating to the static data under fix.non.frac.grid/RRFS_CONUS_3km/ . A failure is successfully caused during the read of slope type from the static surface field and the desired output message is written to the log file.
Doxygen built with no warnings on WCOSS2 using 8608666.
DEPENDENCIES:
N/A
DOCUMENTATION:
N/A
ISSUE:
Addresses #906