diff --git a/util/gdas_init/copy_coldstart_files.sh b/util/gdas_init/copy_coldstart_files.sh old mode 100755 new mode 100644 index d8c80fac3..41e70910b --- a/util/gdas_init/copy_coldstart_files.sh +++ b/util/gdas_init/copy_coldstart_files.sh @@ -1,6 +1,4 @@ -#!/bin/bash - -# Copy files from the working directory to the +opy files from the working directory to the # output directory. copy_data() @@ -10,9 +8,15 @@ copy_data() MEM=$1 - SAVEDIR_MODEL_DATA=$SUBDIR/model_data/atmos/input + #JKHSAVEDIR_MODEL_DATA=$SUBDIR/model_data/atmos/input + SAVEDIR_MODEL_DATA=${ICSDIR}/${yy}${mm}${dd}${hh}/${CDUMP}/${CASE}/INPUT mkdir -p $SAVEDIR_MODEL_DATA cp gfs_ctrl.nc $SAVEDIR_MODEL_DATA + touch $SAVEDIR_MODEL_DATA/chgres_done ## JKH + + TMPDIR=$SUBDIR/model_data/atmos + mkdir -p $TMPDIR + ln -fs $SAVEDIR_MODEL_DATA $TMPDIR/input for tile in 'tile1' 'tile2' 'tile3' 'tile4' 'tile5' 'tile6' do @@ -37,6 +41,7 @@ mm=$4 dd=$5 hh=$6 INPUT_DATA_DIR=$7 +ICS_DIR=$8 if [ ${MEMBER} == 'hires' ]; then MEMBER='gdas' diff --git a/util/gdas_init/run_pre-v14.chgres.sh b/util/gdas_init/run_pre-v14.chgres.sh old mode 100755 new mode 100644 index 9403c66d8..e6815c180 --- a/util/gdas_init/run_pre-v14.chgres.sh +++ b/util/gdas_init/run_pre-v14.chgres.sh @@ -58,6 +58,7 @@ cat << EOF > fort.41 input_type="gfs_sigio" tracers_input="spfh","o3mr","clwmr" tracers="sphum","o3mr","liq_wat" + thomp_mp_climo_file="${FIX_AM}/Thompson_MP_MONTHLY_CLIMO.nc" / EOF @@ -68,7 +69,7 @@ if [ $rc != 0 ]; then exit $rc fi -$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR +$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR $ICSDIR rm -fr $WORKDIR diff --git a/util/gdas_init/run_v14.chgres.sh b/util/gdas_init/run_v14.chgres.sh old mode 100755 new mode 100644 index 590444154..76608fe07 --- a/util/gdas_init/run_v14.chgres.sh +++ b/util/gdas_init/run_v14.chgres.sh @@ -55,6 +55,7 @@ cat << EOF > fort.41 input_type="gfs_gaussian_nemsio" tracers="sphum","liq_wat","o3mr" tracers_input="spfh","clwmr","o3mr" + thomp_mp_climo_file="${FIX_AM}/Thompson_MP_MONTHLY_CLIMO.nc" / EOF @@ -65,7 +66,7 @@ if [ $rc != 0 ]; then exit $rc fi -$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR +$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR $ICSDIR rm -fr $WORKDIR diff --git a/util/gdas_init/run_v15.chgres.gfs.sh b/util/gdas_init/run_v15.chgres.gfs.sh old mode 100755 new mode 100644 index b24920922..0c9fe2a95 --- a/util/gdas_init/run_v15.chgres.gfs.sh +++ b/util/gdas_init/run_v15.chgres.gfs.sh @@ -44,6 +44,7 @@ cat << EOF > fort.41 input_type="gaussian_nemsio" tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel" tracers_input="spfh","clwmr","o3mr","icmr","rwmr","snmr","grle" + thomp_mp_climo_file="${FIX_AM}/Thompson_MP_MONTHLY_CLIMO.nc" / EOF @@ -54,7 +55,7 @@ if [ $rc != 0 ]; then exit $rc fi -$GDAS_INIT_DIR/copy_coldstart_files.sh gfs $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR +$GDAS_INIT_DIR/copy_coldstart_files.sh gfs $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR $ICSDIR rm -fr $WORKDIR diff --git a/util/gdas_init/run_v15.chgres.sh b/util/gdas_init/run_v15.chgres.sh old mode 100755 new mode 100644 index 8b9cbdd1c..2fa7475ba --- a/util/gdas_init/run_v15.chgres.sh +++ b/util/gdas_init/run_v15.chgres.sh @@ -63,6 +63,7 @@ cat << EOF > fort.41 convert_nst=.true. tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel" tracers_input="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel" + thomp_mp_climo_file="${FIX_AM}/Thompson_MP_MONTHLY_CLIMO.nc" / EOF @@ -73,7 +74,7 @@ if [ $rc != 0 ]; then exit $rc fi -$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $RADSTAT_DATA_DIR +$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $RADSTAT_DATA_DIR $ICSDIR rm -fr $WORKDIR diff --git a/util/gdas_init/run_v16.chgres.sh b/util/gdas_init/run_v16.chgres.sh old mode 100755 new mode 100644 index 9b95843cb..50df28256 --- a/util/gdas_init/run_v16.chgres.sh +++ b/util/gdas_init/run_v16.chgres.sh @@ -68,6 +68,7 @@ cat << EOF > fort.41 input_type="gaussian_netcdf" tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel" tracers_input="spfh","clwmr","o3mr","icmr","rwmr","snmr","grle" + thomp_mp_climo_file="${FIX_AM}/Thompson_MP_MONTHLY_CLIMO.nc" / EOF @@ -78,7 +79,7 @@ if [ $rc != 0 ]; then exit $rc fi -$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR +$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR $ICSDIR rm -fr $WORKDIR diff --git a/util/gdas_init/run_v16retro.chgres.sh b/util/gdas_init/run_v16retro.chgres.sh old mode 100755 new mode 100644 index 2a5e59376..5195924e1 --- a/util/gdas_init/run_v16retro.chgres.sh +++ b/util/gdas_init/run_v16retro.chgres.sh @@ -81,6 +81,7 @@ cat << EOF > fort.41 convert_nst=.true. tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel" tracers_input="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel" + thomp_mp_climo_file="${FIX_AM}/Thompson_MP_MONTHLY_CLIMO.nc" / EOF @@ -91,7 +92,7 @@ if [ $rc != 0 ]; then exit $rc fi -$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $RADSTAT_DATA_DIR +$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $RADSTAT_DATA_DIR $ICSDIR rm -fr $WORKDIR