Skip to content

Commit

Permalink
Improved error messages from atmos analysis (#1125)
Browse files Browse the repository at this point in the history
The logical test used to set gsi namelist variable `nhr_obsbin` was not consistent with other checks in the script which use variable `l4densvar`.  This relocates the setting for `nhr_obsbin` to be consistent with other tests using `l4densvar`, which will allow the appropriate error messages to be output by the executable.

Fixes #1123
Fixes [NCO bugzilla #1196](http://www2.spa.ncep.noaa.gov/bugzilla/show_bug.cgi?id=1196)
  • Loading branch information
RussTreadon-NOAA authored Nov 17, 2022
1 parent 87f44e5 commit 6e60e1d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/exglobal_atmos_analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,6 @@ $NLN $SFCGES sfcf06
$NLN $SFCG09 sfcf09

# Link hourly backgrounds (if present)
if [ -f $ATMG04 -a -f $ATMG05 -a -f $ATMG07 -a -f $ATMG08 ]; then
nhr_obsbin=1
fi

[[ -f $ATMG04 ]] && $NLN $ATMG04 sigf04
[[ -f $ATMG05 ]] && $NLN $ATMG05 sigf05
Expand All @@ -562,6 +559,7 @@ if [ $DOHYBVAR = "YES" ]; then
fhrs="06"
if [ $l4densvar = ".true." ]; then
fhrs="03 04 05 06 07 08 09"
nhr_obsbin=1
fi

for imem in $(seq 1 $NMEM_ENKF); do
Expand Down

0 comments on commit 6e60e1d

Please sign in to comment.