-
Notifications
You must be signed in to change notification settings - Fork 180
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
Improve messaging to display clear warning when missing snogrb file #3317
base: develop
Are you sure you want to change the base?
Improve messaging to display clear warning when missing snogrb file #3317
Conversation
- Add INFO echo to state which snogrb file will be used in log - Also fix bug with res setting in exgdas_enkf_sfc.sh Resolves bugzilla 1373 Refs NOAA-EMC#2500
- Add "FATAL ERROR" message if either snogrb file is missing. - Update COMIN/COMOUT variable settings (needed) Refs NOAA-EMC#2500
Combine the INFO and FATAL ERROR messaging for snogrb files into the same if-block. Refs NOAA-EMC#2500
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.
one suggestion in several places just to make things clearer in the logs
After looking at the script logic more closely, I think there is a way to avoid a FATAL error. Note this logic. New snow is only created once per day (around 00z), but there are snow files every six hours. In most cases, these are simply copies of the 00z file with a new file name. Snow is only applied in the cycling if there is new snow. Hence, the check here on the internal date/time stamp. If FNSNOA and FNSNOG contain the same time stamp, the snow update is shut off by setting FNSNOW="" and CYCLVARS to 99999.
If FNSNOA or FNSNOG are missing, the same settings could be done and a WARNING message be printed. The script will continue, and the cycling will not update snow. The snow data is created by an upstream job which has a logic to always populate FNSNOA and FNSNOG files. So I can't envision this ever happening. But if it does, we can continue running and have the SPA investigate the warning. |
If I understand the discussion above, we don't want to
|
Yes, print a warning, but these variables also must be set:
|
Gotcha. Set those for both the missing current cycle and previous cycle snogrb files? Should these if-blocks get merged for any reason? Like:
|
Something like (not sure the syntax is exactly correct):
I think that will work. There may be a way to combine the first two branches. Also, how is $snoprv set when GETGES is called? Can we do a '-f' check on it? |
When
If
I tried that by hardcoding |
Description
This PR resolves bugzilla 1373 (Display clear warning when missing snogrb file). The following changes are included in this PR to resolve the bugzilla:
exit
if soAlso included in this PR are a related bug fix uncovered during work to resolve bugzilla and needed COMIN/COMOUT updates, which are part of a larger initiative. Those changes are:
res
variable setting inscripts/exgdas_enkf_sfc.sh
Refs #2451
Refs #1041
Resolves #2500
Type of change
Bugzilla resolution and bug fix
Change characteristics
Error handling and messaging updates in related workflow scripts.
How has this been tested?
Ran C96_atm3DVar CI test on Hercules.