diff --git a/util/gdas_init/config b/util/gdas_init/config index a67f75c35..5bfe25a81 100644 --- a/util/gdas_init/config +++ b/util/gdas_init/config @@ -44,6 +44,10 @@ # or incomplete. So this option may not # always work. Contact george.gayno@noaa.gov # 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 # #----------------------------------------------------------- @@ -63,6 +67,8 @@ LEVS=65 CDUMP=gdas +FRAC_ORO=yes + CRES_HIRES=C192 CRES_ENKF=C96 @@ -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 @@ -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 diff --git a/util/gdas_init/run_pre-v14.chgres.sh b/util/gdas_init/run_pre-v14.chgres.sh index 3d7ebd9d3..f59ee675a 100755 --- a/util/gdas_init/run_pre-v14.chgres.sh +++ b/util/gdas_init/run_pre-v14.chgres.sh @@ -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" diff --git a/util/gdas_init/run_v14.chgres.sh b/util/gdas_init/run_v14.chgres.sh index 6df881f8b..ac63955b0 100755 --- a/util/gdas_init/run_v14.chgres.sh +++ b/util/gdas_init/run_v14.chgres.sh @@ -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" diff --git a/util/gdas_init/run_v15.chgres.gfs.sh b/util/gdas_init/run_v15.chgres.gfs.sh index dfc35c2f7..2c09b2f47 100755 --- a/util/gdas_init/run_v15.chgres.gfs.sh +++ b/util/gdas_init/run_v15.chgres.gfs.sh @@ -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" diff --git a/util/gdas_init/run_v15.chgres.sh b/util/gdas_init/run_v15.chgres.sh index 5d59fadc9..b78024538 100755 --- a/util/gdas_init/run_v15.chgres.sh +++ b/util/gdas_init/run_v15.chgres.sh @@ -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" diff --git a/util/gdas_init/run_v16.chgres.sh b/util/gdas_init/run_v16.chgres.sh index d359b0361..3583fd85c 100755 --- a/util/gdas_init/run_v16.chgres.sh +++ b/util/gdas_init/run_v16.chgres.sh @@ -59,13 +59,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" data_dir_input_grid="${INPUT_DATA_DIR}" atm_files_input_grid="${ATMFILE}" sfc_files_input_grid="${SFCFILE}" diff --git a/util/gdas_init/run_v16retro.chgres.sh b/util/gdas_init/run_v16retro.chgres.sh index d8b49c796..15b72b409 100755 --- a/util/gdas_init/run_v16retro.chgres.sh +++ b/util/gdas_init/run_v16retro.chgres.sh @@ -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" diff --git a/util/gdas_init/set_fixed_files.sh b/util/gdas_init/set_fixed_files.sh new file mode 100755 index 000000000..c81d99816 --- /dev/null +++ b/util/gdas_init/set_fixed_files.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +#--------------------------------------------------------------------------- +# 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