-
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.
Add an archive task to GEFS system to archive files locally (#2816)
- This task is an extension of the empty arch job previously merged. - This feature adds an archive task to GEFS system to archive files locally. - This feature archives files in ensstat directory. Resolves #2698 Refs #832 #2772
- Loading branch information
1 parent
ac93a9b
commit 2816c3b
Showing
8 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
{% set cycle_HH = current_cycle | strftime("%H") %} | ||
{% set cycle_YMDH = current_cycle | to_YMDH %} | ||
{% set cycle_YMD = current_cycle | to_YMD %} | ||
{% set head = RUN + ".t" + cycle_HH + "z." %} | ||
|
||
# Declare the GEFS_ARCH where atmos data will be sent | ||
{% set GEFS_ARCH = ROTDIR ~ "/gefsarch" %} | ||
|
||
{% set file_set = [] %} | ||
|
||
{% set tmpl_dict = ({ '${ROTDIR}':ROTDIR, | ||
'${RUN}':RUN, | ||
'${YMD}':cycle_YMD, | ||
'${HH}':cycle_HH, | ||
'${GRID}': '1p00', | ||
'${MEMDIR}': 'ensstat' }) %} | ||
|
||
{% set COMIN_ATMOS_ENSSTAT_1p00 = COM_ATMOS_GRIB_GRID_TMPL | replace_tmpl(tmpl_dict) %} | ||
|
||
# Select ensstat files to copy to the arcdir | ||
{% if RUN == "gefs" %} | ||
{% set ensstat_files = [] %} | ||
{% if path_exists(COMIN_ATMOS_ENSSTAT_1p00) %} | ||
{% for fhr in range(FHMIN_GFS, FHMAX_GFS + FHOUT_GFS, FHOUT_GFS) %} | ||
{% do ensstat_files.append([COMIN_ATMOS_ENSSTAT_1p00 ~ "/" ~ head ~ "mean.pres_." ~ | ||
"1p00" ~ ".f" ~ '%03d'|format(fhr) ~ ".grib2", | ||
GEFS_ARCH]) %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} | ||
{% set file_set = ensstat_files %} | ||
# Actually write the yaml | ||
mkdir: | ||
- "{{ GEFS_ARCH }}" | ||
copy: | ||
{% for source_dest_pair in file_set %} | ||
- {{ source_dest_pair }} | ||
{% endfor %} |
File renamed without changes.
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,3 +14,5 @@ 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