Skip to content

Commit 6e60e1d

Browse files
Improved error messages from atmos analysis (#1125)
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)
1 parent 87f44e5 commit 6e60e1d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/exglobal_atmos_analysis.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,6 @@ $NLN $SFCGES sfcf06
537537
$NLN $SFCG09 sfcf09
538538

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

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

567565
for imem in $(seq 1 $NMEM_ENKF); do

0 commit comments

Comments
 (0)