-
Notifications
You must be signed in to change notification settings - Fork 212
Add an archive task to GEFS system to archive files in HPSS #2895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9459e9f
c131171
586efb1
e8c719b
5cb7ad6
f0e834b
786bf96
cbba6d2
b7acfc9
0f34d5a
e070783
67a2f14
93ba555
8fbe947
85deb26
8959362
80f47c1
6baa6ca
61e0331
16a74e0
212f0ad
8de666a
5e71e3b
29b5b99
33f274d
16482db
8c24913
50d21d8
b2c84e6
29944bd
8e41826
76aa61b
99b6fff
88d54e7
85fc9a1
af02c33
c6dca50
9b63e80
a3c69a9
5eeba29
2fb56af
bf47996
9c20784
79cf834
26eb86b
cb012d4
792a5c4
0a30578
8eefcfa
4b9a4f5
5bed5f0
2e221e5
214c0a3
9aec9bb
7d74b4a
9c4f224
7b81e03
f921679
752c518
6fc253a
fec75ff
64eafba
466f386
48a95cf
709f109
1a8f6c0
880eda9
80ead80
71afb3f
c978158
c69d5aa
2e3785f
442e4f0
5dd581d
ae692e4
3df49b6
b2e33be
a8e0732
a246710
5bd3b1f
ed34cd7
3fed0c3
b5c7e36
cb19195
706bf5f
d363ecd
0151ff7
340a820
91fba02
17d3f41
c307800
a7fee42
48032de
7d48835
68c8ff7
e5a5571
4b7b5b1
0f51e82
93316e2
36bcbd0
db61280
e8d951b
0b0bb30
1f982ee
5cb1f5a
177d421
b47cf0f
953a00f
ccdae20
c79def2
22297db
ada5ec6
eac1ee4
90b4729
97e72f7
fa0a1fd
73449d3
442e1c1
6f3aa65
d895084
45f1360
092f4b1
7190cc1
67f4560
97cd65e
b14e488
72fce1d
941836c
3647a44
c24ae40
22cc3b1
43dc2c3
e07b42e
cb558f1
6d1cae2
8bea1eb
b083d4e
262bfb3
a296007
fa05f44
50c5de9
7a774c0
f380971
e3e8da8
f51b762
b705b99
fcbb649
c2bb0ae
1b66adb
ff38f83
7ae9337
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 %} |
| 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 %} |
| 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 %} |
| 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 %} |
| 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" %} | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+8
to
+11
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Given the current yaml files, the archive job should succeed without a If we use
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| {% endfilter %} | ||||||||||||||||||||||||||||||||||||||||
| 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" | ||
Uh oh!
There was an error while loading. Please reload this page.