Skip to content

Commit

Permalink
Expand settings in workflow verification task config files that consi…
Browse files Browse the repository at this point in the history
…st of code that has all been placed on one line to multiline code to make them more legible.
  • Loading branch information
gsketefian committed Nov 25, 2024
1 parent 44df87c commit e257413
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 27 deletions.
56 changes: 48 additions & 8 deletions parm/wflow/verify_det.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,20 @@ default_task_verify_det: &default_task_verify_det

metatask_GridStat_APCP_all_accums_all_mems:
var:
ACCUM_HH: '{% for ah in verification.VX_APCP_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_APCP_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
metatask_GridStat_APCP#ACCUM_HH#h_all_mems:
var:
mem: '{% if global.DO_ENSEMBLE %}{% for m in range(1, global.NUM_ENS_MEMBERS+1) %}{{ "%03d "%m }}{%- endfor -%} {% else %}{{ "000"|string }}{% endif %}'
mem: '{%- if global.DO_ENSEMBLE %}
{%- for m in range(1, global.NUM_ENS_MEMBERS+1) %}
{{- "%03d "%m }}
{%- endfor %}
{%- else %}
{{- "000"|string }}
{%- endif %}'
task_run_MET_GridStat_vx_APCP#ACCUM_HH#h_mem#mem#:
<<: *default_task_verify_det
attrs:
Expand Down Expand Up @@ -57,10 +67,20 @@ metatask_GridStat_APCP_all_accums_all_mems:

metatask_GridStat_ASNOW_all_accums_all_mems:
var:
ACCUM_HH: '{% for ah in verification.VX_ASNOW_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_ASNOW_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
metatask_GridStat_ASNOW#ACCUM_HH#h_all_mems:
var:
mem: '{% if global.DO_ENSEMBLE %}{% for m in range(1, global.NUM_ENS_MEMBERS+1) %}{{ "%03d "%m }}{%- endfor -%} {% else %}{{ "000"|string }}{% endif %}'
mem: '{%- if global.DO_ENSEMBLE %}
{%- for m in range(1, global.NUM_ENS_MEMBERS+1) %}
{{- "%03d "%m }}
{%- endfor %}
{%- else %}
{{- "000"|string }}
{%- endif %}'
task_run_MET_GridStat_vx_ASNOW#ACCUM_HH#h_mem#mem#:
<<: *default_task_verify_det
attrs:
Expand Down Expand Up @@ -91,10 +111,20 @@ metatask_GridStat_ASNOW_all_accums_all_mems:

metatask_GridStat_REFC_RETOP_all_mems:
var:
mem: '{% if global.DO_ENSEMBLE %}{% for m in range(1, global.NUM_ENS_MEMBERS+1) %}{{ "%03d "%m }}{%- endfor -%} {% else %}{{ "000"|string }}{% endif %}'
mem: '{%- if global.DO_ENSEMBLE %}
{%- for m in range(1, global.NUM_ENS_MEMBERS+1) %}
{{- "%03d "%m }}
{%- endfor %}
{%- else %}
{{- "000"|string }}
{%- endif %}'
metatask_GridStat_REFC_RETOP_mem#mem#:
var:
FIELD_GROUP: '{% for var in verification.VX_FIELD_GROUPS %}{% if var in ["REFC", "RETOP"] %}{{ "%s " % var }}{% endif %}{% endfor %}'
FIELD_GROUP: '{%- for var in verification.VX_FIELD_GROUPS %}
{%- if var in ["REFC", "RETOP"] %}
{{- "%s " % var }}
{%- endif %}
{%- endfor %}'
task_run_MET_GridStat_vx_#FIELD_GROUP#_mem#mem#:
<<: *default_task_verify_det
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GRIDSTAT_OR_POINTSTAT_VX"'
Expand Down Expand Up @@ -138,10 +168,20 @@ metatask_GridStat_REFC_RETOP_all_mems:

metatask_PointStat_SFC_UPA_all_mems:
var:
mem: '{% if global.DO_ENSEMBLE %}{% for m in range(1, global.NUM_ENS_MEMBERS+1) %}{{ "%03d "%m }}{%- endfor -%} {% else %}{{ "000"|string }}{% endif %}'
mem: '{%- if global.DO_ENSEMBLE %}
{%- for m in range(1, global.NUM_ENS_MEMBERS+1) %}
{{- "%03d "%m }}
{%- endfor %}
{%- else %}
{{- "000"|string }}
{%- endif %}'
metatask_PointStat_SFC_UPA_mem#mem#:
var:
FIELD_GROUP: '{% for var in verification.VX_FIELD_GROUPS %}{% if var in ["SFC", "UPA"] %}{{ "%s " % var }}{% endif %}{% endfor %}'
FIELD_GROUP: '{%- for var in verification.VX_FIELD_GROUPS %}
{%- if var in ["SFC", "UPA"] %}
{{- "%s " % var }}
{%- endif %}
{%- endfor %}'
task_run_MET_PointStat_vx_#FIELD_GROUP#_mem#mem#:
<<: *default_task_verify_det
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GRIDSTAT_OR_POINTSTAT_VX"'
Expand Down
55 changes: 43 additions & 12 deletions parm/wflow/verify_ens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ default_task_verify_ens: &default_task_verify_ens

metatask_GenEnsProd_EnsembleStat_APCP_all_accums:
var:
ACCUM_HH: '{% for ah in verification.VX_APCP_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_APCP_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
task_run_MET_GenEnsProd_vx_APCP#ACCUM_HH#h: &task_GenEnsProd_CCPA
<<: *default_task_verify_ens
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GENENSPROD_OR_ENSEMBLESTAT"'
Expand Down Expand Up @@ -57,7 +61,11 @@ metatask_GenEnsProd_EnsembleStat_APCP_all_accums:

metatask_GenEnsProd_EnsembleStat_ASNOW_all_accums:
var:
ACCUM_HH: '{% for ah in verification.VX_ASNOW_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_ASNOW_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
task_run_MET_GenEnsProd_vx_ASNOW#ACCUM_HH#h: &task_GenEnsProd_NOHRSC
<<: *default_task_verify_ens
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GENENSPROD_OR_ENSEMBLESTAT"'
Expand Down Expand Up @@ -92,7 +100,11 @@ metatask_GenEnsProd_EnsembleStat_ASNOW_all_accums:

metatask_GenEnsProd_EnsembleStat_REFC_RETOP:
var:
FIELD_GROUP: '{% for var in verification.VX_FIELD_GROUPS %}{% if var in ["REFC", "RETOP"] %}{{ "%s " % var }}{% endif %}{% endfor %}'
FIELD_GROUP: '{%- for var in verification.VX_FIELD_GROUPS %}
{%- if var in ["REFC", "RETOP"] %}
{{- "%s " % var }}
{%- endif %}
{%- endfor %}'
task_run_MET_GenEnsProd_vx_#FIELD_GROUP#: &task_GenEnsProd_MRMS
<<: *default_task_verify_ens
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GENENSPROD_OR_ENSEMBLESTAT"'
Expand All @@ -106,10 +118,9 @@ metatask_GenEnsProd_EnsembleStat_REFC_RETOP:
FCST_LEVEL: 'L0'
FCST_THRESH: 'all'
dependency:
and:
metataskdep_check_post_output: &check_post_output
attrs:
metatask: check_post_output_all_mems
metataskdep_check_post_output: &check_post_output
attrs:
metatask: check_post_output_all_mems
task_run_MET_EnsembleStat_vx_#FIELD_GROUP#:
<<: *task_GenEnsProd_MRMS
envars:
Expand Down Expand Up @@ -144,7 +155,11 @@ metatask_GenEnsProd_EnsembleStat_REFC_RETOP:

metatask_GenEnsProd_EnsembleStat_SFC_UPA:
var:
FIELD_GROUP: '{% for var in verification.VX_FIELD_GROUPS %}{% if var in ["SFC", "UPA"] %}{{ "%s " % var }}{% endif %}{% endfor %}'
FIELD_GROUP: '{%- for var in verification.VX_FIELD_GROUPS %}
{%- if var in ["SFC", "UPA"] %}
{{- "%s " % var }}
{%- endif %}
{%- endfor %}'
task_run_MET_GenEnsProd_vx_#FIELD_GROUP#: &task_GenEnsProd_NDAS
<<: *default_task_verify_ens
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GENENSPROD_OR_ENSEMBLESTAT"'
Expand Down Expand Up @@ -198,7 +213,11 @@ metatask_GridStat_APCP_all_accums_ensmeanprob:
statlc: mean prob
metatask_GridStat_APCP_all_accums_ens#statlc#:
var:
ACCUM_HH: '{% for ah in verification.VX_APCP_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_APCP_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
task_run_MET_GridStat_vx_APCP#ACCUM_HH#h_ens#statlc#:
<<: *default_task_verify_ens
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GRIDSTAT_OR_POINTSTAT_VX_ENS#stat#"'
Expand All @@ -225,7 +244,11 @@ metatask_GridStat_ASNOW_all_accums_ensmeanprob:
statlc: mean prob
metatask_GridStat_ASNOW_all_accums_ens#statlc#:
var:
ACCUM_HH: '{% for ah in verification.VX_ASNOW_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_ASNOW_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
task_run_MET_GridStat_vx_ASNOW#ACCUM_HH#h_ens#statlc#:
<<: *default_task_verify_ens
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GRIDSTAT_OR_POINTSTAT_VX_ENS#stat#"'
Expand All @@ -248,7 +271,11 @@ metatask_GridStat_ASNOW_all_accums_ensmeanprob:

metatask_GridStat_REFC_RETOP_ensprob:
var:
FIELD_GROUP: '{% for var in verification.VX_FIELD_GROUPS %}{% if var in ["REFC", "RETOP"] %}{{ "%s " % var }}{% endif %}{% endfor %}'
FIELD_GROUP: '{%- for var in verification.VX_FIELD_GROUPS %}
{%- if var in ["REFC", "RETOP"] %}
{{- "%s " % var }}
{%- endif %}
{%- endfor %}'
task_run_MET_GridStat_vx_#FIELD_GROUP#_ensprob:
<<: *default_task_verify_ens
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GRIDSTAT_OR_POINTSTAT_VX_ENSPROB"'
Expand All @@ -275,7 +302,11 @@ metatask_PointStat_SFC_UPA_ensmeanprob:
statlc: mean prob
metatask_PointStat_SFC_UPA_ens#statlc#:
var:
FIELD_GROUP: '{% for var in verification.VX_FIELD_GROUPS %}{% if var in ["SFC", "UPA"] %}{{ "%s " % var }}{% endif %}{% endfor %}'
FIELD_GROUP: '{%- for var in verification.VX_FIELD_GROUPS %}
{%- if var in ["SFC", "UPA"] %}
{{- "%s " % var }}
{%- endif %}
{%- endfor %}'
task_run_MET_PointStat_vx_#FIELD_GROUP#_ens#statlc#:
<<: *default_task_verify_ens
command: '&LOAD_MODULES_RUN_TASK; "run_vx" "&JOBSdir;/JREGIONAL_RUN_MET_GRIDSTAT_OR_POINTSTAT_VX_ENS#stat#"'
Expand Down
48 changes: 41 additions & 7 deletions parm/wflow/verify_pre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ task_run_MET_Pb2nc_obs_NDAS:

metatask_PcpCombine_APCP_all_accums_obs_CCPA:
var:
ACCUM_HH: '{% for ah in verification.VX_APCP_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_APCP_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
task_run_MET_PcpCombine_APCP#ACCUM_HH#h_obs_CCPA:
<<: *default_task_verify_pre
attrs:
Expand Down Expand Up @@ -142,7 +146,11 @@ metatask_PcpCombine_APCP_all_accums_obs_CCPA:

metatask_PcpCombine_ASNOW_all_accums_obs_NOHRSC:
var:
ACCUM_HH: '{% for ah in verification.VX_ASNOW_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_ASNOW_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
task_run_MET_PcpCombine_ASNOW#ACCUM_HH#h_obs_NOHRSC:
<<: *default_task_verify_pre
attrs:
Expand Down Expand Up @@ -184,7 +192,13 @@ metatask_PcpCombine_ASNOW_all_accums_obs_NOHRSC:

metatask_check_post_output_all_mems:
var:
mem: '{% if global.DO_ENSEMBLE %}{% for m in range(1, global.NUM_ENS_MEMBERS+1) %}{{ "%03d "%m }}{%- endfor -%} {% else %}{{ "000"|string }}{% endif %}'
mem: '{%- if global.DO_ENSEMBLE %}
{%- for m in range(1, global.NUM_ENS_MEMBERS+1) %}
{{- "%03d "%m }}
{%- endfor %}
{%- else %}
{{- "000"|string }}
{%- endif %}'
task_check_post_output_mem#mem#:
<<: *default_task_verify_pre
attrs:
Expand Down Expand Up @@ -268,10 +282,20 @@ metatask_check_post_output_all_mems:

metatask_PcpCombine_APCP_all_accums_all_mems:
var:
ACCUM_HH: '{% for ah in verification.VX_APCP_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_APCP_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
metatask_PcpCombine_APCP#ACCUM_HH#h_all_mems:
var:
mem: '{% if global.DO_ENSEMBLE %}{% for m in range(1, global.NUM_ENS_MEMBERS+1) %}{{ "%03d "%m }}{%- endfor -%} {% else %}{{ "000"|string }}{% endif %}'
mem: '{%- if global.DO_ENSEMBLE %}
{%- for m in range(1, global.NUM_ENS_MEMBERS+1) %}
{{- "%03d "%m }}
{%- endfor %}
{%- else %}
{{- "000"|string }}
{%- endif %}'
task_run_MET_PcpCombine_APCP#ACCUM_HH#h_fcst_mem#mem#:
<<: *default_task_verify_pre
attrs:
Expand All @@ -296,10 +320,20 @@ metatask_PcpCombine_APCP_all_accums_all_mems:

metatask_PcpCombine_ASNOW_all_accums_all_mems:
var:
ACCUM_HH: '{% for ah in verification.VX_ASNOW_ACCUMS_HRS %}{% if workflow.FCST_LEN_HRS >= ah %}{{ "%02d " % ah }}{% endif %}{% endfor %}'
ACCUM_HH: '{%- for ah in verification.VX_ASNOW_ACCUMS_HRS %}
{%- if workflow.FCST_LEN_HRS >= ah %}
{{- "%02d " % ah }}
{%- endif %}
{%- endfor %}'
metatask_PcpCombine_ASNOW#ACCUM_HH#h_all_mems:
var:
mem: '{% if global.DO_ENSEMBLE %}{% for m in range(1, global.NUM_ENS_MEMBERS+1) %}{{ "%03d "%m }}{%- endfor -%} {% else %}{{ "000"|string }}{% endif %}'
mem: '{%- if global.DO_ENSEMBLE %}
{%- for m in range(1, global.NUM_ENS_MEMBERS+1) %}
{{- "%03d "%m }}
{%- endfor %}
{%- else %}
{{- "000"|string }}
{%- endif %}'
task_run_MET_PcpCombine_ASNOW#ACCUM_HH#h_fcst_mem#mem#:
<<: *default_task_verify_pre
attrs:
Expand Down

0 comments on commit e257413

Please sign in to comment.