-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf47996
commit 9c20784
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters