Skip to content

Commit

Permalink
Update gdas_init utility to use 'orog' files with various
Browse files Browse the repository at this point in the history
combinations of model and ocean resolutions.

Fixes ufs-community#867.
  • Loading branch information
GeorgeGayno-NOAA committed Dec 14, 2023
1 parent 310e222 commit db70ab8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
13 changes: 6 additions & 7 deletions util/gdas_init/config
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@
# or incomplete. So this option may not
# always work. Contact [email protected]
# if you encounter problems.
# FRAC_ORO - To use the latest orographic data,
# set to 'yes', otherwise, set to 'no'.
# Note that: the latest orographic data
# support both frac_grid and none frac_grid in the UFS
# OCNRES - Ocean grid resolution. To use the 'orog'
# files for the coupled model, set to '025',
# '050', etc. Otherwise, comment out.
#
#-----------------------------------------------------------

Expand All @@ -67,11 +66,11 @@ LEVS=65

CDUMP=gdas

FRAC_ORO=yes

CRES_HIRES=C192
CRES_ENKF=C96

OCNRES=100

UFS_DIR=$PWD/../..

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

fi

export EXTRACT_DIR yy mm dd hh UFS_DIR OUTDIR CRES_HIRES CRES_ENKF FRAC_ORO
export EXTRACT_DIR yy mm dd hh UFS_DIR OUTDIR CRES_HIRES CRES_ENKF OCNRES
export LEVS gfs_ver EXEC_DIR GDAS_INIT_DIR
20 changes: 5 additions & 15 deletions util/gdas_init/set_fixed_files.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
#!/bin/bash

#---------------------------------------------------------------------------
# Set directory names and file names for orog data
# The old and new (support fractional grid) orog data have different file names
# Set directory names and file names for orog data.
#---------------------------------------------------------------------------

if [ "${FRAC_ORO:-"no"}" = "yes" ]; then
if [ ${CTAR} == 'C48' ] ; then
OCNRES='500'
elif [ ${CTAR} == 'C96' ] ; then
OCNRES='100'
elif [ ${CTAR} == 'C192' ] ; then
OCNRES='050'
elif [ ${CTAR} == 'C384' ] || [ ${CTAR} == 'C768' ] || [ ${CTAR} == 'C1152' ]; then
OCNRES='025'
fi
ORO_DIR="${CTAR}"
ORO_NAME="${CTAR}.mx${OCNRES}_oro_data"
else
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"
fi

0 comments on commit db70ab8

Please sign in to comment.