Skip to content

Commit

Permalink
Update global_cycle scripts to use either coupled or
Browse files Browse the repository at this point in the history
uncoupled orography data.

Fixes ufs-community#867.
  • Loading branch information
GeorgeGayno-NOAA committed Dec 14, 2023
1 parent 23e1d77 commit 735a5fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions ush/global_cycle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
# Defaults to fix/am.
# FIXam Directory for the global fixed climatology files.
# Defaults to $HOMEgfs/fix/am
# FIXfv3 Directory for the model grid and orography netcdf
# files. Defaults to $HOMEgfs/fix/orog/${CASE}
# EXECgfs Directory of the program executable. Defaults to
# $HOMEgfs/exec
# DATA Working directory
Expand Down Expand Up @@ -234,7 +232,6 @@ gfs_ver=${gfs_ver:-v15.0.0}
BASEDIR=${BASEDIR:-${NWROOT:-/nwprod2}}
HOMEgfs=${HOMEgfs:-$BASEDIR/gfs_ver.${gfs_ver}}
EXECgfs=${EXECgfs:-$HOMEgfs/exec}
FIXfv3=${FIXfv3:-$HOMEgfs/fix/orog/$CASE}
FIXam=${FIXam:-$HOMEgfs/fix/am}
DATA=${DATA:-$(pwd)}
COMIN=${COMIN:-$(pwd)}
Expand Down
7 changes: 6 additions & 1 deletion ush/global_cycle_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set -eux
#-------------------------------------------------------------------------------------------------

export CASE=${CASE:-C768} # resolution of tile: 48, 96, 192, 384, 768, 1152, 3072
ocn=${ocn:-""} # ocean grid resolution: 025, 100, etc.
export CDATE=${CDATE:-${cdate:-2017031900}} # format yyyymmddhh yyyymmddhh ...
export CDUMP=${CDUMP:-gfs} # gfs or gdas
export COMPONENT=${COMPONENT:-atmos}
Expand Down Expand Up @@ -80,7 +81,11 @@ for n in $(seq 1 $ntiles); do
ln -fs $COMOUT/$PDY.${cyc}0000.sfcanl_data.tile${n}.nc $DATA/fnbgso.00$n

ln -fs $FIXfv3/C${CRES}/C${CRES}_grid.tile${n}.nc $DATA/fngrid.00$n
ln -fs $FIXfv3/C${CRES}/C${CRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n
if [ -z "${ocn}" ];then
ln -fs $FIXfv3/C${CRES}/C${CRES}_oro_data.tile${n}.nc $DATA/fnorog.00$n
else
ln -fs $FIXfv3/C${CRES}/C${CRES}.mx${ocn}_oro_data.tile${n}.nc $DATA/fnorog.00$n
fi
if [[ "$DO_SNO_INC" == ".true." ]] ; then
ln -fs $COMIN/$PDY.${cyc}0000.xainc.tile${n}.nc $DATA/xainc.00$n
fi
Expand Down

0 comments on commit 735a5fc

Please sign in to comment.