diff --git a/jobs/JREGIONAL_PLOT_ALLVARS b/jobs/JREGIONAL_PLOT_ALLVARS new file mode 100755 index 0000000000..29f4371a4e --- /dev/null +++ b/jobs/JREGIONAL_PLOT_ALLVARS @@ -0,0 +1,112 @@ +#!/bin/bash + +# +#----------------------------------------------------------------------- +# +# Source the variable definitions file and the bash utility functions. +# +#----------------------------------------------------------------------- +# +. $USHdir/source_util_funcs.sh +source_config_for_task "task_plot_allvars|task_run_fcst" ${GLOBAL_VAR_DEFNS_FP} +. $USHdir/job_preamble.sh +# +#----------------------------------------------------------------------- +# +# Save current shell options (in a global array). Then set new options +# for this script/function. +# +#----------------------------------------------------------------------- +# +{ save_shell_opts; . $USHdir/preamble.sh; } > /dev/null 2>&1 +# +#----------------------------------------------------------------------- +# +# Get the full path to the file in which this script/function is located +# (scrfunc_fp), the name of that file (scrfunc_fn), and the directory in +# which the file is located (scrfunc_dir). +# +#----------------------------------------------------------------------- +# +scrfunc_fp=$( $READLINK -f "${BASH_SOURCE[0]}" ) +scrfunc_fn=$( basename "${scrfunc_fp}" ) +scrfunc_dir=$( dirname "${scrfunc_fp}" ) +# +#----------------------------------------------------------------------- +# +# Print message indicating entry into script. +# +#----------------------------------------------------------------------- +# +print_info_msg " +======================================================================== +Entering script: \"${scrfunc_fn}\" +In directory: \"${scrfunc_dir}\" + +This is the J-job script for the plotting task +========================================================================" +# +#----------------------------------------------------------------------- +# +# Set grid name and COMOUT locations. +# +#----------------------------------------------------------------------- +# +GRID_NAME=${PREDEF_GRID_NAME:-$EXPT_SUBDIR} +if [ "${RUN_ENVIR}" != "nco" ]; then + export COMOUT="${COMOUT}${SLASH_ENSMEM_SUBDIR}/postprd" +fi +# if COMOUT_REF is templatized with $PDY and $cyc, evaluate it +# This is necessary to compare multiple cycles correctly +COMOUT_REF=$(eval echo ${COMOUT_REF}) +# +#----------------------------------------------------------------------- +# +# Call the ex-script for this J-job and pass to it the necessary variables. +# +#----------------------------------------------------------------------- +# + +# plot all variables +$SCRIPTSdir/exregional_plot_allvars.py \ + --cycle ${CDATE} \ + --start ${PLOT_FCST_START} \ + --end ${PLOT_FCST_END:-$FCST_LEN_HRS} \ + --inc ${PLOT_FCST_INC:-1} \ + --comout ${COMOUT} \ + --cartopy-dir ${FIXshp} \ + --domain ${GRID_NAME} || \ +print_err_msg_exit "\ +Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed." + +# plot all variables diff with baseline +if [ ! -z $COMOUT_REF ]; then + $SCRIPTSdir/exregional_plot_allvars_diff.py \ + --cycle ${CDATE} \ + --start ${PLOT_FCST_START} \ + --end ${PLOT_FCST_END:-$FCST_LEN_HRS} \ + --inc ${PLOT_FCST_INC:-1} \ + --comout-1 ${COMOUT} \ + --comout-2 ${COMOUT_REF} \ + --cartopy-dir ${FIXshp} \ + --domain ${GRID_NAME} || \ + print_err_msg_exit "\ + Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed." +fi +# +#----------------------------------------------------------------------- +# +# Run job postamble. +# +#----------------------------------------------------------------------- +# +job_postamble +# +#----------------------------------------------------------------------- +# +# Restore the shell options saved at the beginning of this script/function. +# +#----------------------------------------------------------------------- +# +{ restore_shell_opts; } > /dev/null 2>&1 + diff --git a/modulefiles/tasks/cheyenne/plot_allvars.local.lua b/modulefiles/tasks/cheyenne/plot_allvars.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/cheyenne/plot_allvars.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/gaea/plot_allvars.local.lua b/modulefiles/tasks/gaea/plot_allvars.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/gaea/plot_allvars.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/hera/plot_allvars.local.lua b/modulefiles/tasks/hera/plot_allvars.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/hera/plot_allvars.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/jet/plot_allvars.local.lua b/modulefiles/tasks/jet/plot_allvars.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/jet/plot_allvars.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/plot_allvars.local.lua b/modulefiles/tasks/noaacloud/plot_allvars.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/plot_allvars.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/orion/plot_allvars.local.lua b/modulefiles/tasks/orion/plot_allvars.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/orion/plot_allvars.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/wcoss2/plot_allvars.local.lua b/modulefiles/tasks/wcoss2/plot_allvars.local.lua new file mode 100644 index 0000000000..3370fa018b --- /dev/null +++ b/modulefiles/tasks/wcoss2/plot_allvars.local.lua @@ -0,0 +1 @@ +load("python_regional_workflow") diff --git a/parm/FV3LAM_wflow.xml b/parm/FV3LAM_wflow.xml index b0b632fee4..c1cb9bd171 100644 --- a/parm/FV3LAM_wflow.xml +++ b/parm/FV3LAM_wflow.xml @@ -67,6 +67,7 @@ Workflow task names. + + + + &RSRV_DEFAULT; + &LOAD_MODULES_RUN_TASK_FP; "&PLOT_ALLVARS_TN;" "&JOBSdir;/JREGIONAL_PLOT_ALLVARS" + {{ nnodes_plot_allvars }}:ppn={{ ppn_plot_allvars }} + {{ wtime_plot_allvars }} + &NCORES_PER_NODE; + {%- if machine not in ["WCOSS2"] %} + &SCHED_NATIVE_CMD; + {%- endif %} + &PLOT_ALLVARS_TN; + &LOGDIR;/&PLOT_ALLVARS_TN;_@Y@m@d@H&LOGEXT; + + GLOBAL_VAR_DEFNS_FP&GLOBAL_VAR_DEFNS_FP; + USHdir&USHdir; + PDY@Y@m@d + cyc@H + subcyc@M + LOGDIR&LOGDIR; + SLASH_ENSMEM_SUBDIR{{ slash_ensmem_subdir }} + ENSMEM_INDX#{{ ensmem_indx_name }}# + + + {%- if write_dopost %} + + {%- else %} + + {%- endif %} + + + +{%- endif %} + {%- if run_task_get_obs_ccpa %}