Skip to content

Commit

Permalink
updated archive directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonMFernando-NOAA committed Sep 12, 2024
1 parent bf47996 commit 9c20784
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
36 changes: 36 additions & 0 deletions parm/archive/gefs_ice.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{% set cycle_HH = current_cycle | strftime("%H") %}
{% set cycle_YMD = current_cycle | to_YMD %}
{% set cycle_YMDH = current_cycle | to_YMDH %}
{% set head = RUN + "ice.t" + cycle_HH + "z." %}

gefs:
name: "GEFS"
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gefs_wave.tar"
required:
#select mem%03d and ensstat files required
{% set file_set = [] %}
{% set membr = [] %}
{% for mem_nm in range(0, NMEM_ENS + 1) %}
{% do membr.append("mem" ~ '%03d' % mem_nm ) %}
{% endfor %}

{% for mem in membr %}
{% set tmpl_dict = ({ '${ROTDIR}':ROTDIR,
'${RUN}':RUN,
'${YMD}':cycle_YMD,
'${HH}':cycle_HH,
'${MEMDIR}':mem }) %}

{% set COMIN_ICE_HISTORY = COM_ICE_HISTORY_TMPL | replace_tmpl(tmpl_dict) %}

# Select netcdf files to copy to the atardir
{% if RUN == "gefs" %}
{% if path_exists(COMIN_ICE_HISTORY) %}
{% for fhr in range(FHMIN_GFS + FHOUT_ICE_GFS, FHMAX_GFS + FHOUT_ICE_GFS, FHOUT_ICE_GFS) %}
{% set file_name = head ~ "6hr_avg" ~ ".f" ~ '%03d'|format(fhr) ~ ".nc" %}
{% set file_set = COMIN_ICE_HISTORY ~ "/" ~ file_name %}
- "{{ file_set | relpath(ROTDIR)}}"
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
1 change: 0 additions & 1 deletion parm/archive/gefs_wave.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ gefs:
'${RUN}':RUN,
'${YMD}':cycle_YMD,
'${HH}':cycle_HH,
'${GRID}':"5p00",
'${MEMDIR}':mem }) %}

{% set COMIN_WAVE_GRID = COM_WAVE_GRID_TMPL | replace_tmpl(tmpl_dict) %}
Expand Down
4 changes: 4 additions & 0 deletions parm/archive/master_gefs.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ datasets:

{% filter indent(width=4) %}
{% include "gefs_wave.yaml.j2" %}
{% endfilter %}

{% filter indent(width=4) %}
{% include "gefs_ice.yaml.j2" %}
{% endfilter %}

0 comments on commit 9c20784

Please sign in to comment.