Skip to content
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

Fix bugs in forecast-only mode (GFSv16) #1208

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion jobs/rocoto/arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ if [ $CDUMP = "gfs" ]; then

#for targrp in gfs_flux gfs_netcdf/nemsio gfs_pgrb2b; do
if [ ${SAVEFCSTNEMSIO:-"YES"} = "YES" ]; then
for targrp in gfs_flux gfs_${format}a gfs_${format}b gfs_pgrb2b; do
targrp_list="gfs_flux gfs_${format}b gfs_pgrb2b"
if [ $MODE = "cycled" ] ; then
targrp_list="${targrp_list} gfs_${format}a"
fi
for targrp in $targrp_list; do
htar -P -cvf $ATARDIR/$CDATE/${targrp}.tar `cat $ARCH_LIST/${targrp}.txt`
KateFriedman-NOAA marked this conversation as resolved.
Show resolved Hide resolved
status=$?
if [ $status -ne 0 -a $CDATE -ge $firstday ]; then
Expand Down
5 changes: 4 additions & 1 deletion parm/config/config.base.emc.dyn
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export SCRgfs=$HOMEgfs/scripts
# GLOBAL static environment parameters
export PACKAGEROOT="@PACKAGEROOT@"
export COMROOT="@COMROOT@"
export COMINsyn="@COMINsyn@"
export DMPDIR="@DMPDIR@"
export RTMFIX=$CRTM_FIX

Expand All @@ -58,6 +59,8 @@ export WAFSF="NO" # WAFS products
# use RUNMOS flag (currently in config.vrfy)
export REALTIME="YES"

# Experiment mode (cycled or forecast-only)
export MODE="@MODE@" # cycled/forecast-only

####################################################
# DO NOT ADD MACHINE DEPENDENT STUFF BELOW THIS LINE
Expand Down Expand Up @@ -202,7 +205,7 @@ export IAU_OFFSET=6
export DOIAU_ENKF=${DOIAU:-"YES"} # Enable 4DIAU for EnKF ensemble
export IAUFHRS_ENKF="3,6,9"
export IAU_DELTHRS_ENKF=6
if [[ "$SDATE" = "$CDATE" && $EXP_WARM_START = ".false." ]] || [[ "$DOIAU" = "NO" ]] ; then # Cold starting or IAU off
if [[ "$SDATE" = "$CDATE" && $EXP_WARM_START = ".false." ]] || [[ "$DOIAU" = "NO" ]] || [[ "$MODE" = "forecast-only" && $EXP_WARM_START = ".false." ]] ; then # Cold starting or IAU off
export IAU_OFFSET=0
export IAU_FHROT=0
fi
Expand Down
93 changes: 60 additions & 33 deletions ush/hpssarch_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ if [ $type = "gfs" ]; then
rm -f gfsb.txt
rm -f gfs_pgrb2b.txt
rm -f gfs_flux.txt
rm -f gfs_${format}a.txt
if [ $MODE = "cycled" ]; then
rm -f gfs_${format}a.txt
touch gfs_${format}a.txt
fi
rm -f gfs_${format}b.txt
rm -f gfs_restarta.txt
touch gfsa.txt
touch gfsb.txt
touch gfs_pgrb2b.txt
touch gfs_flux.txt
touch gfs_${format}a.txt
touch gfs_${format}b.txt
touch gfs_restarta.txt

Expand All @@ -63,23 +65,29 @@ if [ $type = "gfs" ]; then
head="gfs.t${cyc}z."

#..................
echo "${dirname}${head}pgrb2b.0p25.anl " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p25.anl.idx " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.anl " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.anl.idx " >>gfs_pgrb2b.txt
if [ $MODE = "cycled" ]; then
echo "${dirname}${head}pgrb2b.0p25.anl " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p25.anl.idx " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.anl " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.anl.idx " >>gfs_pgrb2b.txt
fi

echo "./logs/${CDATE}/gfs*.log " >>gfsa.txt
echo "${dirname}${head}gsistat " >>gfsa.txt
echo "${dirname}${head}nsstbufr " >>gfsa.txt
echo "${dirname}${head}prepbufr " >>gfsa.txt
echo "${dirname}${head}prepbufr_pre-qc " >>gfsa.txt
echo "${dirname}${head}prepbufr.acft_profiles " >>gfsa.txt
echo "${dirname}${head}pgrb2.0p25.anl " >>gfsa.txt
echo "${dirname}${head}pgrb2.0p25.anl.idx " >>gfsa.txt
echo "${dirname}avno.t${cyc}z.cyclone.trackatcfunix " >>gfsa.txt
echo "${dirname}avnop.t${cyc}z.cyclone.trackatcfunix " >>gfsa.txt
echo "${dirname}trak.gfso.atcfunix.${PDY}${cyc} " >>gfsa.txt
echo "${dirname}trak.gfso.atcfunix.altg.${PDY}${cyc} " >>gfsa.txt
if [ $MODE = "cycled" ]; then
echo "${dirname}${head}gsistat " >>gfsa.txt
echo "${dirname}${head}nsstbufr " >>gfsa.txt
echo "${dirname}${head}prepbufr " >>gfsa.txt
echo "${dirname}${head}prepbufr_pre-qc " >>gfsa.txt
echo "${dirname}${head}prepbufr.acft_profiles " >>gfsa.txt
echo "${dirname}${head}pgrb2.0p25.anl " >>gfsa.txt
echo "${dirname}${head}pgrb2.0p25.anl.idx " >>gfsa.txt
fi
if [ $VRFYTRAK = "YES" ]; then
echo "${dirname}avno.t${cyc}z.cyclone.trackatcfunix " >>gfsa.txt
echo "${dirname}avnop.t${cyc}z.cyclone.trackatcfunix " >>gfsa.txt
echo "${dirname}trak.gfso.atcfunix.${PDY}${cyc} " >>gfsa.txt
echo "${dirname}trak.gfso.atcfunix.altg.${PDY}${cyc} " >>gfsa.txt
fi
echo "${dirname}storms.gfso.atcf_gen.${PDY}${cyc} " >>gfsa.txt
echo "${dirname}storms.gfso.atcf_gen.altg.${PDY}${cyc} " >>gfsa.txt

Expand All @@ -103,11 +111,12 @@ if [ $type = "gfs" ]; then
fi
fi

echo "${dirname}${head}pgrb2.0p50.anl " >>gfsb.txt
echo "${dirname}${head}pgrb2.0p50.anl.idx " >>gfsb.txt
echo "${dirname}${head}pgrb2.1p00.anl " >>gfsb.txt
echo "${dirname}${head}pgrb2.1p00.anl.idx " >>gfsb.txt

if [ $MODE = "cycled" ]; then
echo "${dirname}${head}pgrb2.0p50.anl " >>gfsb.txt
echo "${dirname}${head}pgrb2.0p50.anl.idx " >>gfsb.txt
echo "${dirname}${head}pgrb2.1p00.anl " >>gfsb.txt
echo "${dirname}${head}pgrb2.1p00.anl.idx " >>gfsb.txt
fi

fh=0
while [ $fh -le $FHMAX_GFS ]; do
Expand Down Expand Up @@ -145,11 +154,13 @@ if [ $type = "gfs" ]; then


#..................
echo "${dirname}${head}atmanl${SUFFIX} " >>gfs_${format}a.txt
echo "${dirname}${head}sfcanl${SUFFIX} " >>gfs_${format}a.txt
echo "${dirname}${head}atmi*.nc " >>gfs_${format}a.txt
echo "${dirname}${head}dtfanl.nc " >>gfs_${format}a.txt
echo "${dirname}${head}loginc.txt " >>gfs_${format}a.txt
if [ $MODE = "cycled" ]; then
echo "${dirname}${head}atmanl${SUFFIX} " >>gfs_${format}a.txt
echo "${dirname}${head}sfcanl${SUFFIX} " >>gfs_${format}a.txt
echo "${dirname}${head}atmi*.nc " >>gfs_${format}a.txt
echo "${dirname}${head}dtfanl.nc " >>gfs_${format}a.txt
echo "${dirname}${head}loginc.txt " >>gfs_${format}a.txt
fi

#..................
if [ $OUTPUT_HISTORY = ".true." ]; then
Expand All @@ -163,12 +174,28 @@ if [ $type = "gfs" ]; then
fi

#..................
echo "${dirname}RESTART/*0000.sfcanl_data.tile1.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile2.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile3.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile4.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile5.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile6.nc " >>gfs_restarta.txt
if [ $MODE = "cycled" ]; then
echo "${dirname}RESTART/*0000.sfcanl_data.tile1.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile2.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile3.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile4.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile5.nc " >>gfs_restarta.txt
echo "${dirname}RESTART/*0000.sfcanl_data.tile6.nc " >>gfs_restarta.txt
elif [ $MODE = "forecast-only" ]; then
echo "${dirname}INPUT/gfs_ctrl.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/gfs_data.tile1.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/gfs_data.tile2.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/gfs_data.tile3.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/gfs_data.tile4.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/gfs_data.tile5.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/gfs_data.tile6.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/sfc_data.tile1.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/sfc_data.tile2.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/sfc_data.tile3.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/sfc_data.tile4.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/sfc_data.tile5.nc " >>gfs_restarta.txt
echo "${dirname}INPUT/sfc_data.tile6.nc " >>gfs_restarta.txt
fi

#..................
if [ $DO_WAVE = "YES" ]; then
Expand Down
6 changes: 5 additions & 1 deletion ush/rocoto/setup_expt.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def edit_baseconfig():
.replace('@DMPDIR@', dmpdir) \
.replace('@PACKAGEROOT@', packageroot) \
.replace('@COMROOT@', comroot) \
.replace('@COMINsyn@', cominsyn) \
.replace('@HOMEDIR@', homedir) \
.replace('@STMP@', stmp) \
.replace('@PTMP@', ptmp) \
Expand Down Expand Up @@ -188,6 +189,7 @@ def edit_baseconfig():
dmpdir = '/lfs/h2/emc/global/noscrub/emc.global/dump'
packageroot = '${PACKAGEROOT:-"/lfs/h1/ops/prod/packages"}'
comroot = '${COMROOT:-"/lfs/h1/ops/prod/com"}'
cominsyn = '${COMROOT}/gfs/${gfs_ver:-"v16.3"}/syndat'
homedir = '/lfs/h2/emc/global/noscrub/$USER'
stmp = '/lfs/h2/emc/stmp/$USER'
ptmp = '/lfs/h2/emc/ptmp/$USER'
Expand Down Expand Up @@ -241,7 +243,8 @@ def edit_baseconfig():
base_svn = '/scratch1/NCEPDEV/global/glopara/svn'
dmpdir = '/scratch1/NCEPDEV/global/glopara/dump'
packageroot = '/scratch1/NCEPDEV/global/glopara/nwpara'
comroot = '/scratch1/NCEPDEV/rstprod/com'
comroot = '/scratch1/NCEPDEV/global/glopara/com'
cominsyn = '${COMROOT}/gfs/prod/syndat'
homedir = '/scratch1/NCEPDEV/global/$USER'
stmp = '/scratch1/NCEPDEV/stmp2/$USER'
ptmp = '/scratch1/NCEPDEV/stmp4/$USER'
Expand All @@ -259,6 +262,7 @@ def edit_baseconfig():
dmpdir = '/work/noaa/rstprod/dump'
packageroot = '/work/noaa/global/glopara/nwpara'
comroot = '/work/noaa/global/glopara/com'
cominsyn = '${COMROOT}/gfs/prod/syndat'
homedir = '/work/noaa/global/$USER'
stmp = '/work/noaa/stmp/$USER'
ptmp = '/work/noaa/stmp/$USER'
Expand Down
8 changes: 6 additions & 2 deletions ush/rocoto/setup_expt_fcstonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def edit_baseconfig():
.replace('@DMPDIR@', dmpdir) \
.replace('@PACKAGEROOT@', packageroot) \
.replace('@COMROOT@', comroot) \
.replace('@COMINsyn@', cominsyn) \
.replace('@HOMEDIR@', homedir) \
.replace('@STMP@', stmp) \
.replace('@PTMP@', ptmp) \
Expand All @@ -79,7 +80,7 @@ def edit_baseconfig():
.replace('@QUEUE_SERVICE@', queue_service) \
.replace('@PARTITION_BATCH@', partition_batch) \
.replace('@EXP_WARM_START@', exp_warm_start) \
.replace('@MODE@', 'free') \
.replace('@MODE@', 'forecast-only') \
.replace('@CHGRP_RSTPROD@', chgrp_rstprod) \
.replace('@CHGRP_CMD@', chgrp_cmd) \
.replace('@HPSSARCH@', hpssarch) \
Expand Down Expand Up @@ -159,6 +160,7 @@ def edit_baseconfig():
dmpdir = '/lfs/h2/emc/global/noscrub/emc.global/dump'
packageroot = '${PACKAGEROOT:-"/lfs/h1/ops/prod/packages"}'
comroot = '${COMROOT:-"/lfs/h1/ops/prod/com"}'
cominsyn = '${COMROOT}/gfs/${gfs_ver:-"v16.3"}/syndat'
homedir = '/lfs/h2/emc/global/noscrub/$USER'
stmp = '/lfs/h2/emc/stmp/$USER'
ptmp = '/lfs/h2/emc/ptmp/$USER'
Expand Down Expand Up @@ -212,7 +214,8 @@ def edit_baseconfig():
base_svn = '/scratch1/NCEPDEV/global/glopara/svn'
dmpdir = '/scratch1/NCEPDEV/global/glopara/dump'
packageroot = '/scratch1/NCEPDEV/global/glopara/nwpara'
comroot = '/scratch1/NCEPDEV/rstprod/com'
comroot = '/scratch1/NCEPDEV/global/glopara/com'
cominsyn = '${COMROOT}/gfs/prod/syndat'
homedir = '/scratch1/NCEPDEV/global/$USER'
stmp = '/scratch1/NCEPDEV/stmp2/$USER'
ptmp = '/scratch1/NCEPDEV/stmp4/$USER'
Expand All @@ -230,6 +233,7 @@ def edit_baseconfig():
dmpdir = '/work/noaa/rstprod/dump'
packageroot = '/work/noaa/global/glopara/nwpara'
comroot = '/work/noaa/global/glopara/com'
cominsyn = '${COMROOT}/gfs/prod/syndat'
homedir = '/work/noaa/global/$USER'
stmp = '/work/noaa/stmp/$USER'
ptmp = '/work/noaa/stmp/$USER'
Expand Down