From 748083d5fcba37767c608250e3c4da160cea3748 Mon Sep 17 00:00:00 2001 From: "kate.friedman" Date: Fri, 17 Nov 2023 19:38:25 +0000 Subject: [PATCH] Remove vrfy job script and config Refs #235 --- jobs/rocoto/vrfy.sh | 61 ------------------------------------- parm/config/gfs/config.vrfy | 27 ---------------- 2 files changed, 88 deletions(-) delete mode 100755 jobs/rocoto/vrfy.sh delete mode 100644 parm/config/gfs/config.vrfy diff --git a/jobs/rocoto/vrfy.sh b/jobs/rocoto/vrfy.sh deleted file mode 100755 index 1c0cf61d3b..0000000000 --- a/jobs/rocoto/vrfy.sh +++ /dev/null @@ -1,61 +0,0 @@ -#! /usr/bin/env bash - -source "${HOMEgfs}/ush/preamble.sh" - -############################################################### -# Source FV3GFS workflow modules -source "${HOMEgfs}/ush/load_fv3gfs_modules.sh" -status=$? -(( status != 0 )) && exit "${status}" - -export job="vrfy" -export jobid="${job}.$$" - -# TODO (#235) - This job is calling multiple j-jobs and doing too much in general -# Also, this forces us to call the config files here instead of the j-job -source "${HOMEgfs}/ush/jjob_header.sh" -e "vrfy" -c "base vrfy" - -############################################################### -export CDUMP="${RUN/enkf}" - -CDATEm1=$(${NDATE} -24 "${PDY}${cyc}") -export CDATEm1 -export PDYm1=${CDATEm1:0:8} - -############################################################### -# TODO: We can likely drop support for these dev-only grib1 precip files -echo -echo "=============== START TO GENERATE QUARTER DEGREE GRIB1 FILES ===============" -if [[ ${MKPGB4PRCP} = "YES" && ${CDUMP} == "gfs" ]]; then - YMD=${PDY} HH=${cyc} generate_com -x COM_ATMOS_MASTER - if [ ! -d ${ARCDIR} ]; then mkdir -p ${ARCDIR} ; fi - nthreads_env=${OMP_NUM_THREADS:-1} # get threads set in env - export OMP_NUM_THREADS=1 - cd "${COM_ATMOS_MASTER}" || exit 9 - fhmax=${vhr_rain:-${FHMAX_GFS}} - for (( fhr=0; fhr <= fhmax; fhr+=6 )); do - fhr2=$(printf %02i "${fhr}") - fhr3=$(printf %03i "${fhr}") - fname=${RUN}.t${cyc}z.sfluxgrbf${fhr3}.grib2 - fileout=${ARCDIR}/pgbq${fhr2}.${RUN}.${PDY}${cyc}.grib2 - ${WGRIB2} "${fname}" -match "(:PRATE:surface:)|(:TMP:2 m above ground:)" -grib "${fileout}" - done - export OMP_NUM_THREADS=${nthreads_env} # revert to threads set in env -fi - - -############################################################### -echo -echo "=============== START TO RUN MOS ===============" -if [[ "${RUNMOS}" == "YES" && "${CDUMP}" == "gfs" ]]; then - ${RUNGFSMOSSH} "${PDY}${cyc}" -fi - - -############################################################### -# Force Exit out cleanly -cd "${DATAROOT}" -if [[ ${KEEPDATA:-"NO"} = "NO" ]] ; then rm -rf "${DATA}" ; fi - - -exit 0 diff --git a/parm/config/gfs/config.vrfy b/parm/config/gfs/config.vrfy deleted file mode 100644 index 945d0ecfba..0000000000 --- a/parm/config/gfs/config.vrfy +++ /dev/null @@ -1,27 +0,0 @@ -#! /usr/bin/env bash - -########## config.vrfy ########## -# Verification step specific - -echo "BEGIN: config.vrfy" - -# Get task specific resources -. "${EXPDIR}/config.resources" vrfy - -export CDFNL="gdas" # Scores verification against GDAS/GFS analysis -export MKPGB4PRCP="YES" # Make 0.25-deg pgb files in ARCDIR for precip verification -export RUNMOS="NO" # whether to run entire MOS package - -if [[ "${RUNMOS}" == "YES" && "${RUN}" == "gfs" ]]; then - - if [[ "${machine}" = "HERA" ]] ; then - export RUNGFSMOSSH="${HOMEgfs}/scripts/run_gfsmos_master.sh.hera" - else - echo "WARNING: MOS package is not enabled on ${machine}!" - export RUNMOS="NO" - export RUNGFSMOSSH="" - fi -fi - - -echo "END: config.vrfy"