Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added stand-alone verification scripts (feature/issue_683_standaloneVX) #726

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions ush/wrappers/qsub_job.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/sh
#PBS -A P48503002
#PBS -A XXXXXXXXX
#PBS -q regular
#PBS -l select=1:mpiprocs=24:ncpus=24
##PBS -l select=1:mpiprocs=1:ncpus=1 # USE FOR MET VERIFICATION
#PBS -l walltime=02:30:00
#PBS -N run_make_grid
#PBS -j oe -o /glade/scratch/carson/ufs/expt_dirs/test_1/log/run_make_grid.log
cd /glade/scratch/carson/ufs/expt_dirs/test_1
#PBS -j oe -o /path/to/exptdir/log/run_make_grid.log # NEED TO SET
cd /path/to/exptdir # NEED TO SET
set -x
#
source /etc/profile.d/modules.sh
Expand All @@ -31,3 +32,15 @@ module load esmf/8.0.0
##module load esmf/8.0.0_bs50
#
./run_make_grid.sh
#
#
# Additional modules are needed for MET verification jobs
#
#module use /glade/p/ral/jntp/MET/MET_releases/modulefiles
#module load met/10.0.0
#ncar_pylib /glade/p/ral/jntp/UFS_SRW_app/ncar_pylib/python_graphics

#./run_pointvx.sh # Run grod-to-point deterministic vx
#./run_gridvx.sh # Run grid-stat deterministic vx
#./run_pointensvx.sh # Run grid-to-point ensemble/probabilsitic vx
#./rungridensvx.sh # Run grid-to-grid ensemble/probabilsitic vx
22 changes: 22 additions & 0 deletions ush/wrappers/run_gridensvx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

# Stand-alone script to run grid-to-grid ensemble verification
export GLOBAL_VAR_DEFNS_FP="${EXPTDIR}/var_defns.sh"
set -x
source ${GLOBAL_VAR_DEFNS_FP}
export CDATE=${DATE_FIRST_CYCL}${CYCL_HRS}
export CYCLE_DIR=${EXPTDIR}/${CDATE}
export cyc=${CYCL_HRS}
export PDY=${DATE_FIRST_CYCL}
export OBS_DIR=${MRMS_OBS_DIR} # CCPA_OBS_DIR MRMS_OBS_DIR
export VAR="REFC" # APCP REFC RETOP
export ACCUM="" # 01 03 06 24 --> leave empty for REFC and RETOP

export FHR=`echo $(seq 0 ${ACCUM} ${FCST_LEN_HRS}) | cut -d" " -f2-`

${JOBSDIR}/JREGIONAL_RUN_VX_ENSGRID

${JOBSDIR}/JREGIONAL_RUN_VX_ENSGRID_MEAN

${JOBSDIR}/JREGIONAL_RUN_VX_ENSGRID_PROB

19 changes: 19 additions & 0 deletions ush/wrappers/run_gridvx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# Stand-alone script to run grid-to-grid verification
export GLOBAL_VAR_DEFNS_FP="${EXPTDIR}/var_defns.sh"
set -x
source ${GLOBAL_VAR_DEFNS_FP}
export CDATE=${DATE_FIRST_CYCL}${CYCL_HRS}
export CYCLE_DIR=${EXPTDIR}/${CDATE}
export cyc=${CYCL_HRS}
export PDY=${DATE_FIRST_CYCL}
export SLASH_ENSMEM_SUBDIR="" # When running with do_ensemble = true, need to run for each member, e.g., "/mem1"
export OBS_DIR=${CCPA_OBS_DIR} # CCPA_OBS_DIR MRMS_OBS_DIR
export VAR="APCP" # APCP REFC RETOP
export ACCUM="06" # 01 03 06 24 --> leave empty for REFC and RETOP

export FHR=`echo $(seq 0 ${ACCUM} ${FCST_LEN_HRS}) | cut -d" " -f2-`

${JOBSDIR}/JREGIONAL_RUN_VX_GRIDSTAT

20 changes: 20 additions & 0 deletions ush/wrappers/run_pointensvx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

# Stand-alone script to run grid-to-point ensemble verification
export GLOBAL_VAR_DEFNS_FP="${EXPTDIR}/var_defns.sh"
set -x
source ${GLOBAL_VAR_DEFNS_FP}
export CDATE=${DATE_FIRST_CYCL}${CYCL_HRS}
export CYCLE_DIR=${EXPTDIR}/${CDATE}
export cyc=${CYCL_HRS}
export PDY=${DATE_FIRST_CYCL}
export OBS_DIR=${NDAS_OBS_DIR}

export FHR=`echo $(seq 0 1 ${FCST_LEN_HRS})`

${JOBSDIR}/JREGIONAL_RUN_VX_ENSPOINT

${JOBSDIR}/JREGIONAL_RUN_VX_ENSPOINT_MEAN

${JOBSDIR}/JREGIONAL_RUN_VX_ENSPOINT_PROB

17 changes: 17 additions & 0 deletions ush/wrappers/run_pointvx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

# Stand-alone script to run grid-to-point verification
export GLOBAL_VAR_DEFNS_FP="${EXPTDIR}/var_defns.sh"
set -x
source ${GLOBAL_VAR_DEFNS_FP}
export CDATE=${DATE_FIRST_CYCL}${CYCL_HRS}
export CYCLE_DIR=${EXPTDIR}/${CDATE}
export cyc=${CYCL_HRS}
export PDY=${DATE_FIRST_CYCL}
export SLASH_ENSMEM_SUBDIR="" # When running with do_ensemble = true, need to run for each member, e.g., "/mem1"
export OBS_DIR=${NDAS_OBS_DIR}

export FHR=`echo $(seq 0 1 ${FCST_LEN_HRS})`

${JOBSDIR}/JREGIONAL_RUN_VX_POINTSTAT

21 changes: 18 additions & 3 deletions ush/wrappers/sq_job.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/sh
#SBATCH -e /scratch1/BMC/gmtb/Laurie.Carson/expt_dirs/test_2/log/run_make_grid.log
#SBATCH --account=gmtb
#SBATCH -e /path/to/exptdir/log/run_make_grid.log # NEED TO SET
#SBATCH --account=XXXXXXXXX
#SBATCH --qos=batch
#SBATCH --ntasks=48
##SBATCH --ntasks=1 # USE FOR MET VERIFICATION
#SBATCH --time=20
#SBATCH --job-name="run_make_grid"
cd /scratch1/BMC/gmtb/Laurie.Carson/expt_dirs/test_2
cd /path/to/exptdir # NEED TO SET
set -x
. /apps/lmod/lmod/init/sh

Expand Down Expand Up @@ -41,3 +42,17 @@ module load miniconda3
conda activate regional_workflow

./run_make_grid.sh
#
#
# Additional modules are needed for MET verification jobs
#
#module use -a /contrib/anaconda/modulefiles
#module load intel/18.0.5.274
#module load anaconda/latest
#module use -a /contrib/met/modulefiles/
#module load met/10.0.0

#./run_pointvx.sh # Run grod-to-point deterministic vx
#./run_gridvx.sh # Run grid-stat deterministic vx
#./run_pointensvx.sh # Run grid-to-point ensemble/probabilsitic vx
#./run_gridensvx.sh # Run grid-to-grid ensemble/probabilsitic vx