Skip to content

Commit

Permalink
adding GSL gdas_init files
Browse files Browse the repository at this point in the history
  • Loading branch information
jderrico-noaa committed Feb 15, 2024
1 parent ce385ce commit 7a74307
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
13 changes: 9 additions & 4 deletions util/gdas_init/copy_coldstart_files.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -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
Expand All @@ -37,6 +41,7 @@ mm=$4
dd=$5
hh=$6
INPUT_DATA_DIR=$7
ICS_DIR=$8

if [ ${MEMBER} == 'hires' ]; then
MEMBER='gdas'
Expand Down
3 changes: 2 additions & 1 deletion util/gdas_init/run_pre-v14.chgres.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion util/gdas_init/run_v14.chgres.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion util/gdas_init/run_v15.chgres.gfs.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion util/gdas_init/run_v15.chgres.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion util/gdas_init/run_v16.chgres.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion util/gdas_init/run_v16retro.chgres.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 7a74307

Please sign in to comment.