-
Notifications
You must be signed in to change notification settings - Fork 215
Use err_chk in GSI J-Jobs and scripts #3549
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
Merged
DavidHuber-NOAA
merged 14 commits into
NOAA-EMC:develop
from
DavidHuber-NOAA:feature/gsi_err
Apr 9, 2025
Merged
Changes from 4 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
aa0a2e7
Merge err_chk forecast branch
DavidHuber-NOAA 02f0115
Initial stab at err_chk-ing GSI jobs
DavidHuber-NOAA dba190b
Merge remote-tracking branch 'origin/develop' into feature/gsi_err
DavidHuber-NOAA 170e77e
Double quote err
DavidHuber-NOAA c2f3a87
Add missing true
DavidHuber-NOAA 72018e7
Run err_chk on separate line
DavidHuber-NOAA 2fc4a88
Apply suggestions from code review
DavidHuber-NOAA 43ef9aa
Double quote pgmout
DavidHuber-NOAA e1a089c
Remove pipefail wrap that's no longer needed
DavidHuber-NOAA 5162e7f
Merge branch 'develop' into feature/gsi_err
DavidHuber-NOAA 17356cb
Merge remote-tracking branch 'origin/develop' into feature/gsi_err
DavidHuber-NOAA f665740
Do not log err_chk calls with error messages
DavidHuber-NOAA c30d08e
Merge branch 'develop' into feature/gsi_err
DavidHuber-NOAA 13d49ba
Merge branch 'develop' into feature/gsi_err
DavidHuber-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,18 +51,18 @@ mkdir -p "${COMOUT_ATMOS_ANALYSIS}" | |
|
|
||
| export ATMGES_ENSMEAN="${COMIN_ATMOS_HISTORY_PREV}/${GPREFIX}atmf006${GSUFFIX}" | ||
| if [[ ! -f ${ATMGES_ENSMEAN} ]]; then | ||
| echo "FATAL ERROR: FILE MISSING: ATMGES_ENSMEAN = ${ATMGES_ENSMEAN}" | ||
| exit 1 | ||
| export err=1 | ||
| err_chk "FATAL ERROR: FILE MISSING: ATMGES_ENSMEAN = ${ATMGES_ENSMEAN}" | ||
| fi | ||
|
|
||
| # Ignore masking of chained commands and possible misspelling warning | ||
| # shellcheck disable=SC2153,SC2312 | ||
| set +eu | ||
| set -o pipefail | ||
| LEVS=$(${NCDUMP} -h "${ATMGES_ENSMEAN}" | grep -i "pfull" | head -1 | awk -F" = " '{print $2}' | awk -F" " '{print $1}') # get LEVS | ||
|
DavidHuber-NOAA marked this conversation as resolved.
Outdated
|
||
| # shellcheck disable= | ||
| err=$? | ||
| if [[ ${err} -ne 0 ]]; then | ||
| exit "${err}" | ||
| fi | ||
| export err=$? | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See if you can use
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Below in this PR, you will see |
||
| err_chk | ||
| set +o pipefail | ||
| set_strict | ||
|
|
||
| export LEVS | ||
|
|
||
| # Link observational data | ||
|
|
@@ -121,12 +121,9 @@ done | |
| ############################################################### | ||
| # Run relevant script | ||
|
|
||
| ${INVOBSSH:-${SCRgfs}/exgdas_enkf_select_obs.sh} | ||
| err=$? | ||
| if [[ ${err} -ne 0 ]]; then | ||
| exit "${err}" | ||
| fi | ||
|
|
||
| ${INVOBSSH:-${SCRgfs}/exgdas_enkf_select_obs.sh} && true | ||
| export err=$? | ||
| err_chk | ||
|
|
||
| ############################################## | ||
| # Send Alerts | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.