Skip to content

Commit 74fbe4b

Browse files
authored
Merge pull request #1435 from karsenau/fix/s2s_lis7.5.13_patch
Remove user prompt and file checker re-added
2 parents 0c8576e + e6cc74c commit 74fbe4b

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

lis/utils/usaf/s2s/s2s_app/s2s_config_global_fcast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ FCST:
6868
- CCM4: 3
6969
CCSM4: 3
7070
GNEMO5: 3
71-
GEOSv2: 1
72-
CFSv2: 3
71+
GEOSv2: 2
72+
CFSv2: 5
7373
GFDL: 9
7474

7575
#######################################################################

lis/utils/usaf/s2s/s2s_app/s2s_run.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -977,24 +977,33 @@ if [ $DATATYPE == "forecast" ]; then
977977
mkdir -p -m 775 ${SCRDIR}/lis_darun
978978
mkdir -p -m 775 ${SCRDIR}/s2smetric
979979
mkdir -p -m 775 ${SCRDIR}/s2splots
980+
981+
# Check for CFSv2 files being ready to read in:
980982
if [[ $NODE_NAME =~ discover* ]] || [[ $NODE_NAME =~ borg* ]]; then
981983
if [[ $STEP == "E2E" ]] || [[ $STEP == "BCSD" ]]; then
982984
download_forecasts
983985
fi
984986
else
985987
echo
986988
# CFSv2 forecast
987-
# sh s2s_app/wget_cfsv2_oper_ts_e2es.sh -y ${YYYY} -m ${MM} -c ${BWD}/${CFILE} -d N
988-
# ret_code=$?
989+
sh s2s_app/wget_cfsv2_oper_ts_e2es.sh -y ${YYYY} -m ${MM} -c ${BWD}/${CFILE} -d N
990+
ret_code=$?
991+
989992
if [ $ret_code -gt 0 ]; then
993+
echo " Error return code from the CFSv2 file download checker :: "${ret_code}
994+
echo " > 0 :: Exiting from s2s_run.sh --"
990995
exit
991996
fi
992-
read -p "WARNING: Downloading ${YYYY}${MM} NMME precipitation and CFSv2 forcings forecats is a prerequisite to run the ${YYYY}${MM} E2E hydrological forecast. Please confirm, have you downloaded CFSv2 and NMME forecasts already (Y/N)?" YESORNO
993-
if [ "$YESORNO" = 'N' ] || [ "$YESORNO" = 'n' ]; then
994-
exit
995-
fi
997+
# -----------------
998+
# NOTE: Turned off user-specified check below since run from cron env for operations ...
999+
# read -p "WARNING: Downloading ${YYYY}${MM} NMME precipitation and CFSv2 forcings forecasts is a prerequisite to run the ${YYYY}${MM} E2E hydrological forecast. Please confirm, have you downloaded CFSv2 and NMME forecasts already (Y/N)? " YESORNO
1000+
# if [ "$YESORNO" = 'N' ] || [ "$YESORNO" = 'n' ]; then
1001+
# exit
1002+
# fi
1003+
# -----------------
9961004
fi
9971005
fi
1006+
9981007
MODELS=`grep NMME_models $CFILE | cut -d'[' -f2 | cut -d']' -f1 | sed 's/,//g'`
9991008

10001009
cd ${BWD}

lis/utils/usaf/s2s/s2s_app/wget_cfsv2_oper_ts_e2es.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ else
401401
echo "**************************************************************"
402402

403403
fi
404-
echo " -- Done downloading CFSv2 Reforecast files -- "
404+
echo " -- Done checking (and/or downloading) CFSv2 Forecast files -- "
405405

406406
exit $ret_code
407407
# ____________________________

lis/utils/usaf/s2s/s2s_modules/s2splots/plot_anom_verify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def write_clim(config_file, month, flabel):
381381
gl_.left_labels = False
382382
gl_.right_labels = False
383383

384-
plt.title('Monthly '+ var + ' Anomally : ' +titles[count_plot], fontsize=fscale*FONT_SIZE2)
384+
plt.title('Monthly '+ var + ' Anomaly : ' +titles[count_plot], fontsize=fscale*FONT_SIZE2)
385385

386386
if np.mod (count_plot, ncols) == 0:
387387
gl_.left_labels = True

0 commit comments

Comments
 (0)