From a604b61db0cb69e794a8f6b01e5a2a9e2d1d9cad Mon Sep 17 00:00:00 2001 From: Helin Wei Date: Thu, 18 Apr 2024 13:47:37 -0400 Subject: [PATCH] changes to dealing with the missing CPC gauge data --- scripts/exgdas_atmos_gldas.sh | 2 +- ush/gldas_forcing.sh | 4 ++-- ush/gldas_get_data.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/exgdas_atmos_gldas.sh b/scripts/exgdas_atmos_gldas.sh index cc844a4..0a9af9a 100755 --- a/scripts/exgdas_atmos_gldas.sh +++ b/scripts/exgdas_atmos_gldas.sh @@ -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 ]]'} diff --git a/ush/gldas_forcing.sh b/ush/gldas_forcing.sh index 6bc9c18..2072843 100755 --- a/ush/gldas_forcing.sh +++ b/ush/gldas_forcing.sh @@ -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/. diff --git a/ush/gldas_get_data.sh b/ush/gldas_get_data.sh index 529ebbc..a49fc1d 100755 --- a/ush/gldas_get_data.sh +++ b/ush/gldas_get_data.sh @@ -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