-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into migration-jet-contrib
- Loading branch information
Showing
16 changed files
with
286 additions
and
17 deletions.
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,86 @@ | ||
{% set cycle_HH = current_cycle | strftime("%H") %} | ||
{% set cycle_YMD = current_cycle | to_YMD %} | ||
{% set cycle_YMDH = current_cycle | to_YMDH %} | ||
{% set head = RUN + ".t" + cycle_HH + "z." %} | ||
|
||
gefs_atmos: | ||
name: "GEFS_ATMOS" | ||
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gefs_atmos.tar" | ||
required: | ||
#select mem%03d and ensstat files required | ||
{% set members = ["ensstat"] %} | ||
{% for mem_nm in range(0, NMEM_ENS + 1) %} | ||
{% do members.append("mem" ~ '%03d' % mem_nm ) %} | ||
{% endfor %} | ||
|
||
{% if REPLAY_ICS %} | ||
{% set ofst_hr = OFFSET_START_HOUR %} | ||
{% else %} | ||
{% set ofst_hr = FHMIN_GFS %} | ||
{% endif %} | ||
|
||
{% for mem in members %} | ||
{% for res in ['0p25', '0p50', '1p00'] %} | ||
{% set tmpl_dict = ({ '${ROTDIR}':ROTDIR, | ||
'${RUN}':RUN, | ||
'${YMD}':cycle_YMD, | ||
'${HH}':cycle_HH, | ||
'${GRID}':res, | ||
'${MEMDIR}':mem }) %} | ||
|
||
{% set COMIN_ATMOS_GRIB = COM_ATMOS_GRIB_GRID_TMPL | replace_tmpl(tmpl_dict) %} | ||
|
||
# Select pgrb and grib files to copy to the atardir | ||
{% if path_exists(COMIN_ATMOS_GRIB) %} | ||
{% if FHMAX_HF_GFS == 0 %} | ||
{% for fhr in range(ofst_hr, FHMAX_GFS + FHOUT_GFS, FHOUT_GFS) %} | ||
{% if mem=="ensstat" %} | ||
{% set file_name = head ~ "mean.pres_." ~ res ~ ".f" ~ '%03d'|format(fhr) ~ ".grib2" %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% else %} | ||
{% set file_name = head ~ "pgrb2." ~ res ~ ".f" ~ '%03d'|format(fhr) %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% set file_name = head ~ "pgrb2b." ~ res ~ ".f" ~ '%03d'|format(fhr) %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% endif %} | ||
{% endfor %} | ||
{% else %} | ||
{% if res == "0p25" %} | ||
{% for fhr in range(ofst_hr, FHMAX_HF_GFS + FHOUT_HF_GFS, FHOUT_HF_GFS) %} | ||
{% if mem=="ensstat" %} | ||
{% set file_name = head ~ "mean.pres_." ~ res ~ ".f" ~ '%03d'|format(fhr) ~ ".grib2" %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% else %} | ||
{% set file_name = head ~ "pgrb2." ~ res ~ ".f" ~ '%03d'|format(fhr) %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% set file_name = head ~ "pgrb2b." ~ res ~ ".f" ~ '%03d'|format(fhr) %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% if res == "0p50" %} | ||
{% for fhr in range(FHMAX_HF_GFS + FHOUT_GFS, FHMAX_GFS + FHOUT_GFS, FHOUT_GFS) %} | ||
{% if mem=="ensstat" %} | ||
{% set file_name = head ~ "mean.pres_." ~ res ~ ".f" ~ '%03d'|format(fhr) ~ ".grib2" %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% else %} | ||
{% set file_name = head ~ "pgrb2." ~ res ~ ".f" ~ '%03d'|format(fhr) %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% set file_name = head ~ "pgrb2b." ~ res ~ ".f" ~ '%03d'|format(fhr) %} | ||
{% set file_path = COMIN_ATMOS_GRIB ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% 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_ice: | ||
name: "GEFS_ICE" | ||
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gefs_ice.tar" | ||
required: | ||
#select mem%03d and ensstat files required | ||
{% set members = [] %} | ||
{% for mem_nm in range(0, NMEM_ENS + 1) %} | ||
{% do members.append("mem" ~ '%03d' % mem_nm ) %} | ||
{% endfor %} | ||
|
||
{% for mem in members %} | ||
{% 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 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 ~ FHOUT_ICE_GFS ~ "hr_avg" ~ ".f" ~ '%03d'|format(fhr) ~ ".nc" %} | ||
{% set file_path = COMIN_ICE_HISTORY ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% endfor %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% set cycle_HH = current_cycle | strftime("%H") %} | ||
{% set cycle_YMD = current_cycle | to_YMD %} | ||
{% set cycle_YMDH = current_cycle | to_YMDH %} | ||
{% set head = RUN + ".ocean.t" + cycle_HH + "z." %} | ||
|
||
gefs_ocean: | ||
name: "GEFS_OCEAN" | ||
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gefs_ocean.tar" | ||
required: | ||
#select mem%03d and ensstat files required | ||
{% set members = [] %} | ||
{% for mem_nm in range(0, NMEM_ENS + 1) %} | ||
{% do members.append("mem" ~ '%03d' % mem_nm ) %} | ||
{% endfor %} | ||
|
||
{% if OCNRES == "025" %} | ||
{% set res = "1p00" %} | ||
{% else %} | ||
{% set res = (OCNRES|string())[0] ~ "p" ~ (OCNRES|string())[-2:] %} | ||
{% endif %} | ||
|
||
{% for mem in members %} | ||
{% set tmpl_dict = ({ '${ROTDIR}':ROTDIR, | ||
'${RUN}':RUN, | ||
'${YMD}':cycle_YMD, | ||
'${HH}':cycle_HH, | ||
'${MEMDIR}':mem }) %} | ||
|
||
{% set COMIN_OCEAN_NETCDF = COM_OCEAN_NETCDF_TMPL | replace_tmpl(tmpl_dict) %} | ||
|
||
# Select netcdf files to copy to the atardir | ||
{% set netcdf_grid_dir = COMIN_OCEAN_NETCDF ~ "/" ~ res %} | ||
{% if path_exists(netcdf_grid_dir) %} | ||
{% for fhr in range(FHMIN_GFS + FHOUT_OCN_GFS, FHMAX_GFS + FHOUT_OCN_GFS, FHOUT_OCN_GFS) %} | ||
{% set file_name = head ~ res ~ ".f" ~ '%03d'|format(fhr) ~ ".nc" %} | ||
{% set file_path = netcdf_grid_dir ~ "/" ~ file_name %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% endfor %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{% set cycle_HH = current_cycle | strftime("%H") %} | ||
{% set cycle_YMD = current_cycle | to_YMD %} | ||
{% set cycle_YMDH = current_cycle | to_YMDH %} | ||
{% set head = RUN + "wave.t" + cycle_HH + "z." %} | ||
|
||
gefs_wave: | ||
name: "GEFS_WAVE" | ||
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gefs_wave.tar" | ||
required: | ||
{% if REPLAY_ICS %} | ||
{% set ofst_hr = OFFSET_START_HOUR %} | ||
{% else %} | ||
{% set ofst_hr = FHMIN_GFS %} | ||
{% endif %} | ||
|
||
{% set res = (waveGRD[-3:])[0] ~ "p" ~ (waveGRD[-3:])[-2:] %} | ||
|
||
#select mem%03d and ensstat files required | ||
{% set members = [] %} | ||
{% for mem_nm in range(0, NMEM_ENS + 1) %} | ||
{% do members.append("mem" ~ '%03d' % mem_nm ) %} | ||
{% endfor %} | ||
|
||
{% for mem in members %} | ||
{% set tmpl_dict = ({ '${ROTDIR}':ROTDIR, | ||
'${RUN}':RUN, | ||
'${YMD}':cycle_YMD, | ||
'${HH}':cycle_HH, | ||
'${MEMDIR}':mem }) %} | ||
|
||
{% set COMIN_WAVE_GRID = COM_WAVE_GRID_TMPL | replace_tmpl(tmpl_dict) %} | ||
# Select grib2 files to copy to the atardir | ||
{% if path_exists(COMIN_WAVE_GRID) %} | ||
{% for fhr in range(ofst_hr, FHMAX_GFS + FHOUT_WAV, FHOUT_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 %} | ||
|
||
{% set COMIN_WAVE_STATION = COM_WAVE_STATION_TMPL | replace_tmpl(tmpl_dict) %} | ||
# Select station files to copy to the atardir | ||
{% if path_exists(COMIN_WAVE_STATION) %} | ||
{% set file_path = COMIN_WAVE_STATION ~ "/" ~ RUN ~ "wave.t" ~ cycle_HH ~ "z.spec_tar.gz" %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% set file_path = COMIN_WAVE_STATION ~ "/" ~ RUN ~ "wave.t" ~ cycle_HH ~ "z.cbull_tar" %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% set file_path = COMIN_WAVE_STATION ~ "/" ~ RUN ~ "wave.t" ~ cycle_HH ~ "z.bull_tar" %} | ||
- "{{ file_path | relpath(ROTDIR)}}" | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Set variables/lists needed to parse the gefs templates | ||
{% set cycle_HH = current_cycle | strftime("%H") %} | ||
{% set cycle_YMD = current_cycle | to_YMD %} | ||
{% set cycle_YMDH = current_cycle | to_YMDH %} | ||
|
||
datasets: | ||
{% filter indent(width=4) %} | ||
{% include "gefs_extracted_atmos.yaml.j2" %} | ||
{% include "gefs_extracted_ocean.yaml.j2" %} | ||
{% include "gefs_extracted_ice.yaml.j2" %} | ||
{% include "gefs_extracted_wave.yaml.j2" %} | ||
{% endfilter %} |
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 |
---|---|---|
|
@@ -14,5 +14,4 @@ base: | |
FCST_BREAKPOINTS: "48" | ||
REPLAY_ICS: "NO" | ||
USE_OCN_PERTURB_FILES: "false" | ||
HPSSARCH: "NO" | ||
LOCALARCH: "NO" |
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
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
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
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
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
Oops, something went wrong.