Skip to content

Commit

Permalink
feature/cfp: This commit references #2.
Browse files Browse the repository at this point in the history
Reduce the number of APRUN environment variables by
using APRUN_GLDAS_DATA_PROC in all scripts which use
cfp.
  • Loading branch information
GeorgeGayno-NOAA committed Jan 31, 2020
1 parent ded8627 commit e74478a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions scripts/exgdas_gldas.sh.ecf
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ ${USHgldas}/gldas_get_data.sh $gldas_sdate $gldas_cdate
export err=$?
$ERRSCRIPT || exit 2


#---------------------------------------------------------------
### 2) Get CPC daily precip and temporally disaggreated
#---------------------------------------------------------------
Expand Down Expand Up @@ -134,13 +133,11 @@ if [ $machine = "WCOSS_DELL_P3" ] ; then
touch ./cfile
fi

iter=0
while [ $ymd -le $ymdend ]; do
if [ $ymd -ne $ymdpre ]; then
if [ $machine = "WCOSS_DELL_P3" ] ; then
echo "$COPYGB -i3 '-g"$gds"' -x $GDAS/cpc.$ymd/precip.gldas.${ymd}00 $RUNDIR/cmap.gdas.${ymd}00" >> ./cfile
echo "$COPYGB -i3 '-g"$gds"' -x $GDAS/cpc.$ymd/precip.gldas.${ymd}06 $RUNDIR/cmap.gdas.${ymd}06" >> ./cfile
iter=$((iter+2))
else
$COPYGB -i3 -g"$gds" -x $GDAS/cpc.$ymd/precip.gldas.${ymd}00 $RUNDIR/cmap.gdas.${ymd}00
$COPYGB -i3 -g"$gds" -x $GDAS/cpc.$ymd/precip.gldas.${ymd}06 $RUNDIR/cmap.gdas.${ymd}06
Expand All @@ -150,7 +147,6 @@ while [ $ymd -le $ymdend ]; do
if [ $machine = "WCOSS_DELL_P3" ] ; then
echo "$COPYGB -i3 '-g"$gds"' -x $GDAS/cpc.$ymd/precip.gldas.${ymd}12 $RUNDIR/cmap.gdas.${ymd}12" >> ./cfile
echo "$COPYGB -i3 '-g"$gds"' -x $GDAS/cpc.$ymd/precip.gldas.${ymd}18 $RUNDIR/cmap.gdas.${ymd}18" >> ./cfile
iter=$((iter+2))
else
$COPYGB -i3 -g"$gds" -x $GDAS/cpc.$ymd/precip.gldas.${ymd}12 $RUNDIR/cmap.gdas.${ymd}12
$COPYGB -i3 -g"$gds" -x $GDAS/cpc.$ymd/precip.gldas.${ymd}18 $RUNDIR/cmap.gdas.${ymd}18
Expand All @@ -160,8 +156,7 @@ while [ $ymd -le $ymdend ]; do
done

if [ $machine = "WCOSS_DELL_P3" ] ; then
APRUN_GLDAS_COPYGB=${APRUN_GLDAS_COPYGB:-"${launcher} ${iter} cfp"}
$APRUN_GLDAS_COPYGB ./cfile
$APRUN_GLDAS_DATA_PROC ./cfile
fi

# create configure file
Expand Down
3 changes: 1 addition & 2 deletions ush/gldas_forcing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,13 @@ prate=gdas.${sdate}06
$WGRIB -s $sflux | grep "PRATE:sfc" | $WGRIB -i $sflux -grib -o $prate

if [ $machine = "WCOSS_DELL_P3" ] ; then
APRUN_GLDAS_FORCING=${APRUN_GLDAS_FORCING:-"${launcher} 4 cfp"}
rm -f ./cfile
touch ./cfile
echo "$COPYGB -i3 '-g255 0 2881 1441 90000 0 128 -90000 360000 125 125' -x gdas.${sdat0}12 grib.12" >> ./cfile
echo "$COPYGB -i3 '-g255 0 2881 1441 90000 0 128 -90000 360000 125 125' -x gdas.${sdat0}18 grib.18" >> ./cfile
echo "$COPYGB -i3 '-g255 0 2881 1441 90000 0 128 -90000 360000 125 125' -x gdas.${sdate}00 grib.00" >> ./cfile
echo "$COPYGB -i3 '-g255 0 2881 1441 90000 0 128 -90000 360000 125 125' -x gdas.${sdate}06 grib.06" >> ./cfile
$APRUN_GLDAS_FORCING ./cfile
$APRUN_GLDAS_DATA_PROC ./cfile
else
$COPYGB -i3 '-g255 0 2881 1441 90000 0 128 -90000 360000 125 125' -x gdas.${sdat0}12 grib.12
$COPYGB -i3 '-g255 0 2881 1441 90000 0 128 -90000 360000 125 125' -x gdas.${sdat0}18 grib.18
Expand Down

0 comments on commit e74478a

Please sign in to comment.