-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Place copy of coldstart files in a common script.
Fixes #772.
- Loading branch information
1 parent
d98902f
commit a886e6a
Showing
4 changed files
with
52 additions
and
76 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
copy_data() | ||
{ | ||
|
||
set -x | ||
|
||
mkdir -p $SAVEDIR | ||
cp gfs_ctrl.nc $SAVEDIR | ||
|
||
for tile in 'tile1' 'tile2' 'tile3' 'tile4' 'tile5' 'tile6' | ||
do | ||
cp out.atm.${tile}.nc ${SAVEDIR}/gfs_data.${tile}.nc | ||
cp out.sfc.${tile}.nc ${SAVEDIR}/sfc_data.${tile}.nc | ||
done | ||
} | ||
|
||
set -x | ||
|
||
MEMBER=$1 | ||
OUTDIR=$2 | ||
yy=$3 | ||
mm=$4 | ||
dd=$5 | ||
hh=$6 | ||
INPUT_DATA_DIR=$7 | ||
|
||
echo 'in new script' | ||
echo $MEMBER $OUTDIR | ||
|
||
if [ ${MEMBER} == 'gdas' ] || [ ${MEMBER} == 'gfs' ]; then | ||
SUBDIR=$OUTDIR/${MEMBER}.${yy}${mm}${dd}/${hh} | ||
rm -fr $SUBDIR | ||
SAVEDIR=$SUBDIR/atmos/INPUT | ||
copy_data | ||
touch $SAVEDIR/../${MEMBER}.t${hh}z.loginc.txt | ||
if [ ${MEMBER} == 'gdas' ]; then | ||
cp ${INPUT_DATA_DIR}/*abias* $SAVEDIR/.. | ||
cp ${INPUT_DATA_DIR}/*radstat $SAVEDIR/.. | ||
fi | ||
else | ||
SUBDIR=$OUTDIR/enkfgdas.${yy}${mm}${dd}/${hh}/mem${MEMBER} | ||
rm -fr $SUBDIR | ||
SAVEDIR=$SUBDIR/atmos/INPUT | ||
copy_data | ||
touch $SAVEDIR/../enkfgdas.t${hh}z.loginc.txt | ||
fi | ||
|
||
exit 0 |
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
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
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