Skip to content

Commit

Permalink
modified gefs_wave.yaml.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonMFernando-NOAA committed Sep 17, 2024
1 parent a7fee42 commit 48032de
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions parm/archive/gefs_wave.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ gefs_wave:
{% endif %}

#select mem%03d and ensstat files required
{% set membr = [] %}
{% set members = [] %}
{% for mem_nm in range(0, NMEM_ENS + 1) %}
{% do membr.append("mem" ~ '%03d' % mem_nm ) %}
{% do members.append("mem" ~ '%03d' % mem_nm ) %}
{% endfor %}

{% for mem in membr %}
{% for mem in members %}
{% set tmpl_dict = ({ '${ROTDIR}':ROTDIR,
'${RUN}':RUN,
'${YMD}':cycle_YMD,
Expand All @@ -43,13 +43,11 @@ gefs_wave:
{% set COMIN_WAVE_GRID = COM_WAVE_GRID_TMPL | replace_tmpl(tmpl_dict) %}

# Select grib2 files to copy to the atardir
{% if RUN == "gefs" %}
{% if path_exists(COMIN_WAVE_GRID) %}
{% for fhr in range(ofst_hr, FHMAX_GFS + FHOUT_HF_WAV, FHOUT_HF_WAV) %}
{% set file_name = head ~ "global." ~ res ~ ".f" ~ '%03d'|format(fhr) ~ ".grib2" %}
{% set file_path = COMIN_WAVE_GRID ~ "/" ~ file_name %}
- "{{ file_path | relpath(ROTDIR)}}"
{% endfor %}
{% endif %}
{% if path_exists(COMIN_WAVE_GRID) %}
{% for fhr in range(ofst_hr, FHMAX_GFS + FHOUT_HF_WAV, FHOUT_HF_WAV) %}
{% set file_name = head ~ "global." ~ res ~ ".f" ~ '%03d'|format(fhr) ~ ".grib2" %}
{% set file_path = COMIN_WAVE_GRID ~ "/" ~ file_name %}
- "{{ file_path | relpath(ROTDIR)}}"
{% endfor %}
{% endif %}
{% endfor %}

0 comments on commit 48032de

Please sign in to comment.