From ab35ffce8aa61388f28e8a40f2a460dd24a30502 Mon Sep 17 00:00:00 2001 From: "kate.friedman" Date: Mon, 19 Aug 2024 20:46:23 +0000 Subject: [PATCH] Update analysis yaml for enkfgdas ratminc.nc - Add ratminc.nc to the list of files in the analysis staging yaml. - Remove "gdas" condition for including analysis yaml. Refs #2475 --- parm/stage/analysis.yaml.j2 | 13 +++++++++++-- parm/stage/master_gfs.yaml.j2 | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/parm/stage/analysis.yaml.j2 b/parm/stage/analysis.yaml.j2 index f6beada6b4..e014313b6d 100644 --- a/parm/stage/analysis.yaml.j2 +++ b/parm/stage/analysis.yaml.j2 @@ -1,10 +1,19 @@ +{% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS_MEM_list[0] | relpath(ROTDIR)) %} analysis: - {% set COMOUT_ATMOS_ANALYSIS_MEM = COMOUT_ATMOS_ANALYSIS_MEM_list[0] %} mkdir: + {% for mem in range(first_mem, last_mem + 1) %} + {% set imem = mem - first_mem %} + {% set COMOUT_ATMOS_ANALYSIS_MEM = COMOUT_ATMOS_ANALYSIS_MEM_list[imem] %} - "{{ COMOUT_ATMOS_ANALYSIS_MEM }}" + {% endfor %} copy: - {% for ftype in ["abias", "abias_air", "abias_int", "abias_pc", "atminc.nc", "radstat"] %} + {% for mem in range(first_mem, last_mem + 1) %} + {% set imem = mem - first_mem %} + {% set COMOUT_ATMOS_ANALYSIS_MEM = COMOUT_ATMOS_ANALYSIS_MEM_list[imem] %} + {% for ftype in ["abias", "abias_air", "abias_int", "abias_pc", "atminc.nc", "radstat", "ratminc.nc"] %} {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS_MEM | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z." ~ ftype) %} - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS_MEM | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}", "{{ COMOUT_ATMOS_ANALYSIS_MEM }}"] {% endif %} {% endfor %} + {% endfor %} # mem loop +{% endif %} diff --git a/parm/stage/master_gfs.yaml.j2 b/parm/stage/master_gfs.yaml.j2 index 8608d5a40e..5204221c9b 100644 --- a/parm/stage/master_gfs.yaml.j2 +++ b/parm/stage/master_gfs.yaml.j2 @@ -127,7 +127,7 @@ # Initial condition to stage - include components based on switches ################################################################### -{% if MODE == "cycled" and RUN == "gdas" %} +{% if MODE == "cycled" %} {% filter indent(width=4) %} {% include "analysis.yaml.j2" %} {% endfilter %}