Skip to content

Commit

Permalink
Update gdas_init utility to only use the 'mx' version of
Browse files Browse the repository at this point in the history
the 'orog' and 'sfc' files.

Fixes #867.
  • Loading branch information
GeorgeGayno-NOAA committed Dec 21, 2023
1 parent 7b3345d commit 7c74c2c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
7 changes: 1 addition & 6 deletions util/gdas_init/config
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
# or incomplete. So this option may not
# always work. Contact george.gayno@noaa.gov
# if you encounter problems.
# OCNRES - Ocean grid resolution. To use the 'orog'
# files for the coupled model, set to 025,
# 050, 100 or 500. Otherwise, comment out.
#
#-----------------------------------------------------------

Expand All @@ -69,8 +66,6 @@ CDUMP=gdas
CRES_HIRES=C192
CRES_ENKF=C96

OCNRES=100

UFS_DIR=$PWD/../..

OUTDIR=/lfs/h2/emc/stmp/$USER/gdas.init/output
Expand Down Expand Up @@ -115,5 +110,5 @@ else

fi

export EXTRACT_DIR yy mm dd hh UFS_DIR OUTDIR CRES_HIRES CRES_ENKF OCNRES
export EXTRACT_DIR yy mm dd hh UFS_DIR OUTDIR CRES_HIRES CRES_ENKF
export LEVS gfs_ver EXEC_DIR GDAS_INIT_DIR
23 changes: 17 additions & 6 deletions util/gdas_init/set_fixed_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@
# Set directory names and file names for orog data.
#---------------------------------------------------------------------------

if [ -z "${OCNRES}" ]; then # for uncoupled runs.
ORO_DIR="${CTAR}"
ORO_NAME="${CTAR}_oro_data"
else # for coupled runs.
ORO_DIR="${CTAR}"
ORO_NAME="${CTAR}.mx${OCNRES}_oro_data"
if [ ${CTAR} == 'C48' ] ; then
OCNRES='500'
elif [ ${CTAR} == 'C96' ]; then
OCNRES='500'
elif [ ${CTAR} == 'C192' ]; then
OCNRES='050'
elif [ ${CTAR} == 'C384' ]; then
OCNRES='025'
elif [ ${CTAR} == 'C768' ]; then
OCNRES='025'
elif [ ${CTAR} == 'C1152' ]; then
OCNRES='025'
else
OCNRES='025'
fi

ORO_DIR="${CTAR}"
ORO_NAME="${CTAR}.mx${OCNRES}_oro_data"

0 comments on commit 7c74c2c

Please sign in to comment.