[Ncep.list.emc.fv3gfs_tickets] FV3GFS Ticket #10: fv3gfs workflow and utilities
FV3GFS Trac Ticket
ncep.list.emc.fv3gfs_tickets at noaa.gov
Fri Jun 23 17:12:24 UTC 2017
#10: fv3gfs workflow and utilities
-----------------------------+--------------------------
Reporter: fanglin.yang@… | Owner: fanglin yang
Type: task | Status: new
Priority: major | Milestone:
Component: component1 | Version:
Resolution: | Keywords:
-----------------------------+--------------------------
Comment (by fanglin.yang@…):
Update to exglobal_fcst_nemsfv3gfs.sh:
The script currently works for "WARM START" in cycled experiment, in
which restart files at forecast hour 6 are copied to the ROTDIR/RESTART of
next cycle. It is not working for stopping and restarting the same
forecast using "WARM RESTART" files. The following changes have been made
and the script has been committed to the trunk. This change has no impact
on existing DA and forecast-only experiments.
SURGE-slogin2 > svn diff exglobal_fcst_nemsfv3gfs.sh -r head
Index: exglobal_fcst_nemsfv3gfs.sh
===================================================================
--- exglobal_fcst_nemsfv3gfs.sh (revision 94817)
+++ exglobal_fcst_nemsfv3gfs.sh (working copy)
@@ -128,6 +128,7 @@
warm_start=${warm_start:-".false."}
read_increment=${read_increment:-".false."}
increment_file=${increment_file:-$memdir/${CDUMP}.t${chh}z.atminc.nc}
+restart_interval=${restart_interval:-0}
if [ $warm_start = ".false." ]; then
if [ -d $IC_DIR/${CASE}_$CDATE ]; then
@@ -142,7 +143,11 @@
done
fi
else
- # Handle .res.tile?.nc and .suf.tile?.nc files
+ if [ $restart_interval -eq 0 ]; then
+ # start from the end of last forecast run
+ $NLN $memdir/RESTART/* $DATA/INPUT/.
+ else
+ # Handle .res.tile?.nc and .suf.tile?.nc files for DA cycling
for file in $memdir/RESTART/${cymd}.${chh}0000.*.nc; do
file2=$(echo $(basename $file))
file2=`echo $file2 | cut -d. -f3-` # remove the date from file
@@ -152,7 +157,7 @@
$NLN $file $DATA/INPUT/$file2
fi
done
- # Handle coupler.res file
+ # Handle coupler.res file for DA cycling
if [ ${USE_COUPLER_RES:-"YES"} = "YES" ]; then
# In DA, this is not really a "true restart",
# and the model start time is the analysis time
@@ -170,6 +175,7 @@
read_increment=".false."
fi
fi
+ fi
fi
nfiles=`ls -1 $DATA/INPUT/* | wc -l`
if [ $nfiles -le 0 ]; then
@@ -368,7 +374,6 @@
SDAY=`echo $CDATE | cut -c7-8`
SHOUR=`echo $CDATE | cut -c9-10`
curr_date="${SYEAR},${SMONTH},${SDAY},${SHOUR},0,0"
-restart_interval=${restart_interval:-0}
rsecs=$((restart_interval*3600))
restart_secs=${rsecs:-0}
@@ -739,14 +744,9 @@
$NCP $file $rmemdir/RESTART/$file
done
else
- # Save the restart files in same directory as RESTART
- # as per Fanglin's needs, add a timestamp
- # If restart_interval /= 0 and /= 6,
- # there are multiple restart times and * will copy all these and
- # put them in the RESTART directory, whether you want it or not.
- # Fanglin.Yang will correct it when his need change
+ # Save restart files at the end of the forecast in ROTDIR/RESTART
directory
mkdir -p $memdir/RESTART
- for file in * ; do
+ for file in `ls * |grep -v 0000` ; do
$NCP $file $memdir/RESTART/$file
done
fi
--
Ticket URL: <https://svnemc.ncep.noaa.gov/trac/fv3gfs/ticket/10#comment:24>
fv3gfs <https://svnemc.ncep.noaa.gov/trac/fv3gfs>
NGGPS FV3GFS Development
More information about the Ncep.list.emc.fv3gfs_tickets
mailing list