Skip to content

Commit

Permalink
1. By updating GTG tag, modify the GTG source code: when there is a h…
Browse files Browse the repository at this point in the history
…igh wind (>500 m/s), send out a warning WITHOUT error message (#328)

and let GTG computation continue;
2. modify the script so the WAFS failure will not affect generation of GFS
  • Loading branch information
YaliMao-NOAA authored Jun 8, 2021
1 parent f163d78 commit 85f5058
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Externals.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[gtg]
tag = ncep_post_gtg.v2.0.1
tag = ncep_post_gtg.v2.0.4
protocol = git
repo_url = [email protected]:NCAR/UPP_GTG.git
local_path = sorc/post_gtg.fd
Expand Down
47 changes: 28 additions & 19 deletions scripts/exgfs_atmos_nceppost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,27 +202,32 @@ then
export PGIOUT=wafsifile

$POSTGPSH
export err=$?; err_chk
export err=$?

# WAFS package doesn't process this part.
# Need to be saved for WAFS U/V/T verification,
# resolution higher than WAFS 1.25 deg for future compatibility
wafsgrid="latlon 0:1440:0.25 90:721:-0.25"
$WGRIB2 $PGBOUT -set_grib_type same -new_grid_winds earth \
if [ $err -ne 0 ] ; then
echo " *** GFS POST WARNING: WAFS output failed for analysis, err=$err"
else

# WAFS package doesn't process this part.
# Need to be saved for WAFS U/V/T verification,
# resolution higher than WAFS 1.25 deg for future compatibility
wafsgrid="latlon 0:1440:0.25 90:721:-0.25"
$WGRIB2 $PGBOUT -set_grib_type same -new_grid_winds earth \
-new_grid_interpolation bilinear -set_bitmap 1 \
-new_grid $wafsgrid ${PGBOUT}.tmp

if test $SENDCOM = "YES"
then
if test $SENDCOM = "YES"
then
cp ${PGBOUT}.tmp $COMOUT/${PREFIX}wafs.0p25.anl
$WGRIB2 -s ${PGBOUT}.tmp > $COMOUT/${PREFIX}wafs.0p25.anl.idx

# if [ $SENDDBN = YES ]; then
# $DBNROOT/bin/dbn_alert MODEL GFS_WAFS_GB2 $job $COMOUT/${PREFIX}wafs.0p25.anl
# $DBNROOT/bin/dbn_alert MODEL GFS_WAFS_GB2__WIDX $job $COMOUT/${PREFIX}wafs.0p25.anl.idx
# fi
fi
rm $PGBOUT ${PGBOUT}.tmp
fi
rm $PGBOUT ${PGBOUT}.tmp
fi
fi
########################## WAFS U/V/T analysis end ##########################
Expand Down Expand Up @@ -528,16 +533,20 @@ do
$POSTGPSH
fi

export err=$?; err_chk

if [ -e $PGBOUT ]
then
if test $SENDCOM = "YES"
then
cp $PGBOUT $COMOUT/${PREFIX}wafs.grb2f$fhr
cp $PGIOUT $COMOUT/${PREFIX}wafs.grb2if$fhr
fi
fi
export err=$?

if [ $err -ne 0 ] ; then
echo " *** GFS POST WARNING: WAFS output failed for f${fhr}, err=$err"
else
if [ -e $PGBOUT ]
then
if test $SENDCOM = "YES"
then
cp $PGBOUT $COMOUT/${PREFIX}wafs.grb2f$fhr
cp $PGIOUT $COMOUT/${PREFIX}wafs.grb2if$fhr
fi
fi
fi
fi
[[ -f wafsfile ]] && rm wafsfile ; [[ -f wafsifile ]] && rm wafsifile
fi
Expand Down
6 changes: 6 additions & 0 deletions ush/gfs_nceppost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ ${APRUN:-mpirun.lsf} $POSTGPEXEC < itag > outpost_gfs_${VDATE}_${CTL}

export ERR=$?
export err=$ERR

if [ $err -ne 0 ] ; then
if [ $PGBOUT = "wafsfile" ] ; then
exit $err
fi
fi
$ERRSCRIPT||exit 2

if [ $FILTER = "1" ] ; then
Expand Down

0 comments on commit 85f5058

Please sign in to comment.