Skip to content

Commit

Permalink
set up the right path to get CPC gauage precp data (#5)
Browse files Browse the repository at this point in the history
* set up the right path to get CPC gauage precp data

* make further change to make sure realtime and restrospective runs will use the same prcp data
  • Loading branch information
HelinWei-NOAA authored Apr 12, 2020
1 parent 3427d4b commit 6c2c77a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/exgdas_gldas.sh.ecf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export WGRIB2=${WGRIB2:-$utilexec/wgrib2}
export COPYGB=${COPYGB:-$utilexec/copygb}
export NDATE=${NDATE:-/gpfs/dell1/nco/ops/nwprod/prod_util.v1.1.0/exec/ips/ndate}
export DCOMIN=${DCOMIN:-${DCOMROOT:-"/gpfs/dell1/nco/ops/dcom"}}
export CPCGAUGE=${CPCGAUGE:-/gpfs/dell2/emc/modeling/noscrub/emc.glopara/stat/cpcUniGauge}
export CPCGAUGE=${CPCGAUGE:-/gpfs/dell3/emc/global/dump}
export COMINgdas=${COMINgdas:-$ROTDIR}
export OFFLINE_GLDAS=${OFFLINE_GLDAS:-"NO"}
export ERRSCRIPT=${ERRSCRIPT:-'eval [[ $err = 0 ]]'}
Expand Down
6 changes: 2 additions & 4 deletions ush/gldas_forcing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ sdat0=`sh $FINDDATE $sdate d-1`
cd $xpath
rm -f fort.* grib.*

pathp1=$DCOMIN/us007003/$sdate/wgrbbul/cpc_rcdas
pathp2=$DCOMIN/$sdate/wgrbbul/cpc_rcdas
pathp1=$CPCGAUGE/gdas.$sdate/00
pathp2=$DCOMIN/prod/$sdate/wgrbbul/cpc_rcdas
yyyy=`echo $sdate |cut -c 1-4`
pathp3=$CPCGAUGE/$yyyy
cpc_precip="PRCP_CU_GAUGE_V1.0GLB_0.125deg.lnx.$sdate.RT"
cpc=$pathp1/$cpc_precip
if [ ! -s $cpc ]; then cpc=$pathp2/$cpc_precip ; fi
if [ ! -s $cpc ]; then cpc=$pathp3/$cpc_precip ; fi
if [ ! -s $cpc ]; then
echo "GLDAS MISSING $cpc"
echo "GLDAS WILL NOT RUN."
Expand Down

0 comments on commit 6c2c77a

Please sign in to comment.