Skip to content

Commit

Permalink
changes to dealing with the missing CPC gauge data
Browse files Browse the repository at this point in the history
  • Loading branch information
HelinWei-NOAA committed Apr 18, 2024
1 parent fd8ba62 commit a604b61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/exgdas_atmos_gldas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export WGRIB2=${WGRIB2:-/apps/ops/prod/libs/intel/19.1.3.304/wgrib2/2.0.7/bin/wg
export COPYGB=${COPYGB:-$utilexec/copygb}
export NDATE=${NDATE:-/apps/ops/prod/nco/core/prod_util.v2.0.13/exec/ndate}
export DCOMIN=${DCOMIN:-${DCOMROOT:-"/lfs/h1/ops/prod/dcom"}}
export CPCGAUGE=${CPCGAUGE:-/lfs/h2/emc/global/noscrub/emc.global/dump}
export CPCGAUGE=${CPCGAUGE:-/lfs/h1/ops/prod/com/gfs/v16.3}
export COMINgdas=${COMINgdas:-$ROTDIR}
export OFFLINE_GLDAS=${OFFLINE_GLDAS:-"NO"}
export ERRSCRIPT=${ERRSCRIPT:-'eval [[ $err = 0 ]]'}
Expand Down
4 changes: 2 additions & 2 deletions ush/gldas_forcing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ cpc=$pathp1/$cpc_precip
if [ ! -s $cpc ]; then cpc=$pathp2/$cpc_precip ; fi
if [ $RUN_ENVIR = "nco" ]; then cpc=$pathp2/$cpc_precip ; fi
if [ ! -s $cpc ]; then
echo "WARNING: GLDAS MISSING $cpc, WILL NOT RUN."
exit 3
echo "FATAL ERROR: GLDAS MISSING $cpc, WILL NOT RUN."
exit 2
fi
cp $cpc $xpath/cpc.$sdate/.

Expand Down
2 changes: 1 addition & 1 deletion ush/gldas_get_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ while [ $f -le $cycint ]; do
fflux=$fpath/gdas.$ymd/gdas.t${cyc}z.sfluxgrbf0$f.grib2
gflux=$gpath/gdas.$ymd/gdas1.t${cyc}z.sfluxgrbf0$f
if [ ! -s $rflux ];then
echo "WARNING: GLDAS MISSING $rflux, WILL NOT RUN."
echo "FATAL ERROR: GLDAS MISSING $rflux, WILL NOT RUN."
exit 2
fi
rm -f $fflux $gflux
Expand Down

0 comments on commit a604b61

Please sign in to comment.