forked from ufs-community/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gdas_init utility to use 'orog' files with various
combinations of model and ocean resolutions. Fixes ufs-community#867.
- Loading branch information
1 parent
310e222
commit db70ab8
Showing
2 changed files
with
11 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
# | ||
#----------------------------------------------------------- | ||
|
||
|
@@ -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 | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |