Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GDAS INIT utility to optionally use fracoro data #741

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions util/gdas_init/config
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
# 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
#
#-----------------------------------------------------------

Expand All @@ -63,6 +67,8 @@ LEVS=65

CDUMP=gdas

FRAC_ORO=yes

CRES_HIRES=C192
CRES_ENKF=C96

Expand All @@ -73,7 +79,6 @@ OUTDIR=/lfs/h2/emc/stmp/$USER/gdas.init/output
#---------------------------------------------------------
# Dont touch anything below here.
#---------------------------------------------------------

if [ "$use_v16retro" = "yes" ]; then

gfs_ver=v16retro
Expand Down Expand Up @@ -107,5 +112,5 @@ else

fi

export EXTRACT_DIR yy mm dd hh UFS_DIR OUTDIR CRES_HIRES CRES_ENKF
export EXTRACT_DIR yy mm dd hh UFS_DIR OUTDIR CRES_HIRES CRES_ENKF FRAC_ORO
export LEVS gfs_ver
10 changes: 6 additions & 4 deletions util/gdas_init/run_pre-v14.chgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ rm -fr $OUTDIR
mkdir -p $OUTDIR
mkdir -p $OUTDIR/INPUT

source $UFS_DIR/util/gdas_init/set_fixed_files.sh

cat << EOF > fort.41

&config
fix_dir_target_grid="${FIX_ORO}/${CTAR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${CTAR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${CTAR}"
orog_files_target_grid="${CTAR}_oro_data.tile1.nc","${CTAR}_oro_data.tile2.nc","${CTAR}_oro_data.tile3.nc","${CTAR}_oro_data.tile4.nc","${CTAR}_oro_data.tile5.nc","${CTAR}_oro_data.tile6.nc"
fix_dir_target_grid="${FIX_ORO}/${ORO_DIR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${ORO_DIR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${ORO_DIR}"
orog_files_target_grid="${ORO_NAME}.tile1.nc","${ORO_NAME}.tile2.nc","${ORO_NAME}.tile3.nc","${ORO_NAME}.tile4.nc","${ORO_NAME}.tile5.nc","${ORO_NAME}.tile6.nc"
data_dir_input_grid="${INPUT_DATA_DIR}"
atm_files_input_grid="$ATMFILE"
sfc_files_input_grid="$SFCFILE"
Expand Down
10 changes: 6 additions & 4 deletions util/gdas_init/run_v14.chgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ rm -fr $OUTDIR
mkdir -p $OUTDIR
mkdir -p $OUTDIR/INPUT

source $UFS_DIR/util/gdas_init/set_fixed_files.sh

cat << EOF > fort.41

&config
fix_dir_target_grid="${FIX_ORO}/${CTAR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${CTAR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${CTAR}"
orog_files_target_grid="${CTAR}_oro_data.tile1.nc","${CTAR}_oro_data.tile2.nc","${CTAR}_oro_data.tile3.nc","${CTAR}_oro_data.tile4.nc","${CTAR}_oro_data.tile5.nc","${CTAR}_oro_data.tile6.nc"
fix_dir_target_grid="${FIX_ORO}/${ORO_DIR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${ORO_DIR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${ORO_DIR}"
orog_files_target_grid="${ORO_NAME}.tile1.nc","${ORO_NAME}.tile2.nc","${ORO_NAME}.tile3.nc","${ORO_NAME}.tile4.nc","${ORO_NAME}.tile5.nc","${ORO_NAME}.tile6.nc"
data_dir_input_grid="${INPUT_DATA_DIR}"
atm_files_input_grid="$ATMFILE"
sfc_files_input_grid="$SFCFILE"
Expand Down
10 changes: 6 additions & 4 deletions util/gdas_init/run_v15.chgres.gfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ rm -fr $OUTDIR
mkdir -p $OUTDIR
mkdir -p $OUTDIR/INPUT

source $UFS_DIR/util/gdas_init/set_fixed_files.sh

cat << EOF > fort.41

&config
fix_dir_target_grid="${FIX_ORO}/${CTAR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${CTAR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${CTAR}"
orog_files_target_grid="${CTAR}_oro_data.tile1.nc","${CTAR}_oro_data.tile2.nc","${CTAR}_oro_data.tile3.nc","${CTAR}_oro_data.tile4.nc","${CTAR}_oro_data.tile5.nc","${CTAR}_oro_data.tile6.nc"
fix_dir_target_grid="${FIX_ORO}/${ORO_DIR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${ORO_DIR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${ORO_DIR}"
orog_files_target_grid="${ORO_NAME}.tile1.nc","${ORO_NAME}.tile2.nc","${ORO_NAME}.tile3.nc","${ORO_NAME}.tile4.nc","${ORO_NAME}.tile5.nc","${ORO_NAME}.tile6.nc"
data_dir_input_grid="${INPUT_DATA_DIR}"
atm_files_input_grid="$ATMFILE"
sfc_files_input_grid="$SFCFILE"
Expand Down
10 changes: 6 additions & 4 deletions util/gdas_init/run_v15.chgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ rm -fr $OUTDIR
mkdir -p $OUTDIR
mkdir -p $OUTDIR/INPUT

source $UFS_DIR/util/gdas_init/set_fixed_files.sh

cat << EOF > fort.41

&config
fix_dir_target_grid="${FIX_ORO}/${CTAR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${CTAR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${CTAR}"
orog_files_target_grid="${CTAR}_oro_data.tile1.nc","${CTAR}_oro_data.tile2.nc","${CTAR}_oro_data.tile3.nc","${CTAR}_oro_data.tile4.nc","${CTAR}_oro_data.tile5.nc","${CTAR}_oro_data.tile6.nc"
fix_dir_target_grid="${FIX_ORO}/${ORO_DIR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${ORO_DIR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${ORO_DIR}"
orog_files_target_grid="${ORO_NAME}.tile1.nc","${ORO_NAME}.tile2.nc","${ORO_NAME}.tile3.nc","${ORO_NAME}.tile4.nc","${ORO_NAME}.tile5.nc","${ORO_NAME}.tile6.nc"
mosaic_file_input_grid="${FIX_ORO}/${CINP}/${CINP}_mosaic.nc"
orog_dir_input_grid="${FIX_ORO}/${CINP}"
orog_files_input_grid="${CINP}_oro_data.tile1.nc","${CINP}_oro_data.tile2.nc","${CINP}_oro_data.tile3.nc","${CINP}_oro_data.tile4.nc","${CINP}_oro_data.tile5.nc","${CINP}_oro_data.tile6.nc"
Expand Down
10 changes: 6 additions & 4 deletions util/gdas_init/run_v16.chgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ rm -fr $WORKDIR
mkdir -p $WORKDIR
cd $WORKDIR

GeorgeGayno-NOAA marked this conversation as resolved.
Show resolved Hide resolved
source $UFS_DIR/util/gdas_init/set_fixed_files.sh

cat << EOF > fort.41

&config
fix_dir_target_grid="${FIX_ORO}/${CTAR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${CTAR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${CTAR}"
orog_files_target_grid="${CTAR}_oro_data.tile1.nc","${CTAR}_oro_data.tile2.nc","${CTAR}_oro_data.tile3.nc","${CTAR}_oro_data.tile4.nc","${CTAR}_oro_data.tile5.nc","${CTAR}_oro_data.tile6.nc"
fix_dir_target_grid="${FIX_ORO}/${ORO_DIR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${ORO_DIR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${ORO_DIR}"
orog_files_target_grid="${ORO_NAME}.tile1.nc","${ORO_NAME}.tile2.nc","${ORO_NAME}.tile3.nc","${ORO_NAME}.tile4.nc","${ORO_NAME}.tile5.nc","${ORO_NAME}.tile6.nc"
data_dir_input_grid="${INPUT_DATA_DIR}"
atm_files_input_grid="${ATMFILE}"
sfc_files_input_grid="${SFCFILE}"
Expand Down
10 changes: 6 additions & 4 deletions util/gdas_init/run_v16retro.chgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ rm -fr $WORKDIR
mkdir -p $WORKDIR
cd $WORKDIR

source $UFS_DIR/util/gdas_init/set_fixed_files.sh

cat << EOF > fort.41

&config
fix_dir_target_grid="${FIX_ORO}/${CTAR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${CTAR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${CTAR}"
orog_files_target_grid="${CTAR}_oro_data.tile1.nc","${CTAR}_oro_data.tile2.nc","${CTAR}_oro_data.tile3.nc","${CTAR}_oro_data.tile4.nc","${CTAR}_oro_data.tile5.nc","${CTAR}_oro_data.tile6.nc"
fix_dir_target_grid="${FIX_ORO}/${ORO_DIR}/fix_sfc"
mosaic_file_target_grid="${FIX_ORO}/${ORO_DIR}/${CTAR}_mosaic.nc"
orog_dir_target_grid="${FIX_ORO}/${ORO_DIR}"
orog_files_target_grid="${ORO_NAME}.tile1.nc","${ORO_NAME}.tile2.nc","${ORO_NAME}.tile3.nc","${ORO_NAME}.tile4.nc","${ORO_NAME}.tile5.nc","${ORO_NAME}.tile6.nc"
mosaic_file_input_grid="${FIX_ORO}/${CINP}/${CINP}_mosaic.nc"
orog_dir_input_grid="${FIX_ORO}/${CINP}"
orog_files_input_grid="${CINP}_oro_data.tile1.nc","${CINP}_oro_data.tile2.nc","${CINP}_oro_data.tile3.nc","${CINP}_oro_data.tile4.nc","${CINP}_oro_data.tile5.nc","${CINP}_oro_data.tile6.nc"
Expand Down
23 changes: 23 additions & 0 deletions util/gdas_init/set_fixed_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
GeorgeGayno-NOAA marked this conversation as resolved.
Show resolved Hide resolved

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

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}.mx${OCNRES}_frac"
ORO_NAME="oro_${CTAR}.mx${OCNRES}"
else
ORO_DIR="${CTAR}"
ORO_NAME="${CTAR}_oro_data"
fi