|
2 | 2 | {% set cycle_YMDH = current_cycle | to_YMDH %}
|
3 | 3 | {% set cycle_YMD = current_cycle | to_YMD %}
|
4 | 4 | {% set head = RUN + ".t" + cycle_HH + "z." %}
|
5 |
| -{% if RUN == "gdas" or RUN == "gfs" %} |
6 |
| -deterministic: |
7 |
| - mkdir: |
8 |
| - - "{{ ARCDIR }}" |
9 |
| - {% if RUN == "gfs" %} |
10 |
| - - "{{ ARCDIR }}/tracker.{{ cycle_YMDH }}/{{ RUN }}" |
11 |
| - {% endif %} |
12 |
| - {% if FITSARC %} |
13 |
| - {% set VFYARC = ROTDIR + "/vrfyarch" %} |
14 |
| - - "{{ VFYARC }}/{{ RUN }}.{{ cycle_YMD }}/{{ cycle_HH }}" |
15 |
| - {% endif %} |
16 |
| - copy: |
17 |
| - {% if current_cycle != SDATE and MODE == "cycled" %} |
18 |
| - {% if DO_JEDIATMVAR %} |
19 |
| - - ["{{ COM_ATMOS_ANALYSIS }}/{{ head }}atmstat", "{{ ARCDIR }}/atmstat.{{ RUN }}.{{ cycle_YMDH }}"] |
20 |
| - {% else %} |
21 |
| - - ["{{ COM_ATMOS_ANALYSIS }}/{{ head }}gsistat", "{{ ARCDIR }}/gsistat.{{ RUN }}.{{ cycle_YMDH }}"] |
22 |
| - {% endif %} |
23 |
| - {% if DO_JEDISNOWDA %} |
24 |
| - - ["{{ COM_SNOW_ANALYSIS }}/{{ head }}snowstat.tgz", "{{ ARCDIR }}/snowstat.{{ RUN }}.{{ cycle_YMDH }}.tgz"] |
25 |
| - {% endif %} |
26 |
| - {% if AERO_ANL_CDUMP == RUN or AERO_ANL_CDUMP == "both" %} |
27 |
| - - ["{{ COM_CHEM_ANALYSIS }}/{{ head }}aerostat", "{{ ARCDIR }}/aerostat.{{ RUN }}.{{ cycle_YMDH }}"] |
28 |
| - {% endif %} |
29 |
| - - ["{{ COM_ATMOS_GRIB_1p00 }}/{{ head }}pgrb2.1p00.anl", "{{ ARCDIR }}/pgbanl.{{ RUN }}.{{ cycle_YMDH }}.grib2"] |
30 |
| - {% endif %} # Full cycle |
31 |
| - {% if RUN == "gfs" %} |
32 |
| - {% set fhmax, fhout = FHMAX_GFS, FHOUT_GFS %} |
33 |
| - {% elif RUN == "gdas" %} |
34 |
| - {% set fhmax, fhout = FHMAX, FHOUT %} |
35 |
| - {% endif %} |
36 |
| - {% for fhr in range(0, fhmax + fhout, fhout) %} |
37 |
| - - ["{{ COM_ATMOS_GRIB_1p00 }}/{{ head }}pgrb2.1p00.f{{ '%03d' % fhr }}", "{{ ARCDIR }}/pgbf{{ '%02d' % fhr }}.{{ RUN }}.{{ cycle_YMDH }}.grib2"] |
38 |
| - {% endfor %} |
39 |
| - {% if RUN == "gfs" %} |
40 |
| - {% if FITSARC %} |
41 |
| - {% if FHMAX_FITS is defined %} |
42 |
| - {% set fhmax = FHMAX_FITS %} |
43 |
| - {% else %} |
44 |
| - {% set fhmax = FHMAX_GFS %} |
45 |
| - {% endif %} |
46 |
| - {% for fhr in range(0, fhmax + 6, 6) %} |
47 |
| - {% set sfcfile = "/" + head + "sfcf" + '%03d'|format(fhr) + ".nc" %} |
48 |
| - {% set sigfile = "/" + head + "atmf" + '%03d'|format(fhr) + ".nc" %} |
49 |
| - - ["{{COM_ATMOS_HISTORY}}/{{ sfcfile }}", "{{ VFYARC }}/{{ RUN }}.{{ cycle_YMD }}/{{ cycle_HH }}/{{ sfcfile }}"] |
50 |
| - - ["{{COM_ATMOS_HISTORY}}/{{ sigfile }}", "{{ VFYARC }}/{{ RUN }}.{{ cycle_YMD }}/{{ cycle_HH }}/{{ sigfile }}"] |
51 |
| - {% endfor %} |
52 |
| - {% endif %} ## FITSARC |
53 |
| - {% if path_exists(COM_ATMOS_GENESIS ~ "/storms.gfso.atcf_gen." ~ cycle_YMDH) %} |
54 |
| - - ["{{ COM_ATMOS_GENESIS }}/storms.gfso.atcf_gen.{{ cycle_YMDH }}", "{{ ARCDIR }}/storms.gfso.atcf_gen.{{ cycle_YMDH }}"] |
55 |
| - - ["{{ COM_ATMOS_GENESIS }}/storms.gfso.atcf_gen.altg.{{ cycle_YMDH }}", "{{ ARCDIR }}/storms.gfso.atcf_gen.altg.{{ cycle_YMDH }}"] |
56 |
| - {% endif %} |
57 |
| - {% if path_exists(COM_ATMOS_GENESIS ~ "/trak.gfso.atcfunix." ~ cycle_YMDH) %} |
58 |
| - - ["{{ COM_ATMOS_GENESIS }}/trak.gfso.atcfunix.{{ cycle_YMDH }}", "{{ ARCDIR }}/trak.gfso.atcfunix.{{ cycle_YMDH }}"] |
59 |
| - - ["{{ COM_ATMOS_GENESIS }}/trak.gfso.atcfunix.altg.{{ cycle_YMDH }}", "{{ ARCDIR }}/trak.gfso.atcfunix.altg.{{ cycle_YMDH }}"] |
60 |
| - {% endif %} |
61 |
| - ## Only created if tracking is on and there were systems to track |
62 |
| - {% for basin in ["epac", "natl"] %} |
63 |
| - {% if path_exists(COM_ATMOS_TRACK + "/" + basin) %} |
64 |
| - - ["{{ COM_ATMOS_TRACK }}/{{ basin }}", "{{ ARCDIR }}/{{ basin }}"] |
65 |
| - {% endif %} |
66 |
| - {% endfor %} |
67 |
| - {% endif %} ## RUN == "gfs" |
68 |
| - {% if path_exists(COM_ATMOS_TRACK ~ "/atcfunix." ~ RUN ~ "." ~ cycle_YMDH) %} |
69 |
| - - ["{{ COM_ATMOS_TRACK }}/atcfunix.{{ RUN }}.{{ cycle_YMDH }}", "{{ ARCDIR }}/atcfunix.{{ RUN }}.{{ cycle_YMDH }}"] |
70 |
| - - ["{{ COM_ATMOS_TRACK }}/atcfunixp.{{ RUN }}.{{ cycle_YMDH }}", "{{ ARCDIR }}/atcfunixp.{{ RUN }}.{{ cycle_YMDH }}"] |
71 |
| - {% endif %} |
72 |
| -{% endif %} # gfs or gdas |
73 |
| -{% if current_cycle != SDATE and (RUN == "enkfgdas" or RUN == "enkfgfs") %} |
74 |
| -ensemble: |
75 |
| - mkdir: |
76 |
| - - "{{ ARCDIR }}" |
77 |
| - copy: |
78 |
| - {% if DO_JEDIATMENS %} |
79 |
| - - ["{{ COM_ATMOS_ANALYSIS_ENSSTAT }}/{{ head }}atmensstat", "{{ ARCDIR }}/atmensstat.{{ RUN }}.{{ cycle_YMDH }}"] |
80 |
| - - ["{{ COM_ATMOS_ANALYSIS_ENSSTAT }}/{{ head }}atminc.ensmean.nc", "{{ ARCDIR }}/atmensstat.{{ RUN }}.{{ cycle_YMDH }}.ensmean.nc"] |
81 |
| - {% else %} |
82 |
| - - ["{{ COM_ATMOS_ANALYSIS_ENSSTAT }}/{{ head }}enkfstat", "{{ ARCDIR }}/enkfstat.{{ RUN }}.{{ cycle_YMDH }}"] |
83 |
| - - ["{{ COM_ATMOS_ANALYSIS_ENSSTAT }}/{{ head }}gsistat.ensmean", "{{ ARCDIR }}/gsistat.{{ RUN }}.{{ cycle_YMDH }}.ensmean"] |
84 |
| - {% endif %} |
85 |
| -{% endif %} # enkfgdas or enkfgfs |
| 5 | + |
| 6 | +# Select data to store in the ARCDIR and VFYARC from deterministic runs |
| 7 | +Base: &base # GDAS, GFS, ENKFGDAS, or ENKFGFS |
| 8 | + common: |
| 9 | + mkdir: |
| 10 | + - "{{ ARCDIR }}" |
| 11 | + |
| 12 | +# Common files to be added to both the gfs and gdas keys below |
| 13 | +Deterministic: &deterministic |
| 14 | + cyclone: |
| 15 | + copy: |
| 16 | + # Cyclone forecasts, produced for both gdas and gfs cycles |
| 17 | + ## Only created if tracking is on and there were systems to track |
| 18 | + {% if path_exists(COM_ATMOS_TRACK ~ "/atcfunix." ~ RUN ~ "." ~ cycle_YMDH) %} |
| 19 | + - ["{{ COM_ATMOS_TRACK }}/atcfunix.{{ RUN }}.{{ cycle_YMDH }}", "{{ ARCDIR }}/atcfunix.{{ RUN }}.{{ cycle_YMDH }}"] |
| 20 | + - ["{{ COM_ATMOS_TRACK }}/atcfunixp.{{ RUN }}.{{ cycle_YMDH }}", "{{ ARCDIR }}/atcfunixp.{{ RUN }}.{{ cycle_YMDH }}"] |
| 21 | + {% endif %} |
| 22 | + |
| 23 | + # Cyclone tracking data |
| 24 | + {% for basin in ["epac", "natl"] %} |
| 25 | + {% if path_exists(COM_ATMOS_TRACK + "/" + basin) %} |
| 26 | + - ["{{ COM_ATMOS_TRACK }}/{{ basin }}", "{{ ARCDIR }}/{{ basin }}"] |
| 27 | + {% endif %} |
| 28 | + {% endfor %} |
| 29 | + |
| 30 | + {% if MODE == "cycled" %} |
| 31 | + analysis: |
| 32 | + copy: |
| 33 | + # Analysis data (if we are running in cycled mode) |
| 34 | + - ["{{ COM_ATMOS_GRIB_1p00 }}/{{ head }}pgrb2.1p00.anl", "{{ ARCDIR }}/pgbanl.{{ RUN }}.{{ cycle_YMDH }}.grib2"] |
| 35 | + |
| 36 | + {% if DO_JEDIATMVAR %} |
| 37 | + - ["{{ COM_ATMOS_ANALYSIS }}/{{ head }}atmstat", "{{ ARCDIR }}/atmstat.{{ RUN }}.{{ cycle_YMDH }}"] |
| 38 | + {% else %} |
| 39 | + - ["{{ COM_ATMOS_ANALYSIS }}/{{ head }}gsistat", "{{ ARCDIR }}/gsistat.{{ RUN }}.{{ cycle_YMDH }}"] |
| 40 | + {% endif %} |
| 41 | + |
| 42 | + {% if DO_JEDISNOWDA %} |
| 43 | + - ["{{ COM_SNOW_ANALYSIS }}/{{ head }}snowstat.tgz", "{{ ARCDIR }}/snowstat.{{ RUN }}.{{ cycle_YMDH }}.tgz"] |
| 44 | + {% endif %} |
| 45 | + |
| 46 | + {% if AERO_ANL_CDUMP == RUN or AERO_ANL_CDUMP == "both" %} |
| 47 | + - ["{{ COM_CHEM_ANALYSIS }}/{{ head }}aerostat", "{{ ARCDIR }}/aerostat.{{ RUN }}.{{ cycle_YMDH }}"] |
| 48 | + {% endif %} |
| 49 | + |
| 50 | + {% endif %} |
| 51 | + |
| 52 | +{% if RUN == "gfs" %} |
| 53 | +gfs: # GFS specific |
| 54 | + <<: *base |
| 55 | + <<: *deterministic |
| 56 | + |
| 57 | + gfs: |
| 58 | + copy: |
| 59 | + {% for fhr in range(0, FHMAX_GFS + 1, FHOUT_GFS) %} |
| 60 | + - ["{{ COM_ATMOS_GRIB_1p00 }}/{{ head }}pgrb2.1p00.f{{ '%03d' % fhr }}", "{{ ARCDIR }}/pgbf{{ '%02d' % fhr }}.{{ RUN }}.{{ cycle_YMDH }}.grib2"] |
| 61 | + {% endfor %} |
| 62 | + |
| 63 | + # Cyclone genesis data (only present if there are storms) |
| 64 | + {% if path_exists(COM_ATMOS_GENESIS ~ "/storms.gfso.atcf_gen." ~ cycle_YMDH) %} |
| 65 | + - ["{{ COM_ATMOS_GENESIS }}/storms.gfso.atcf_gen.{{ cycle_YMDH }}", "{{ ARCDIR }}/storms.gfso.atcf_gen.{{ cycle_YMDH }}"] |
| 66 | + - ["{{ COM_ATMOS_GENESIS }}/storms.gfso.atcf_gen.altg.{{ cycle_YMDH }}", "{{ ARCDIR }}/storms.gfso.atcf_gen.altg.{{ cycle_YMDH }}"] |
| 67 | + {% endif %} |
| 68 | + |
| 69 | + {% if path_exists(COM_ATMOS_GENESIS ~ "/trak.gfso.atcfunix." ~ cycle_YMDH) %} |
| 70 | + - ["{{ COM_ATMOS_GENESIS }}/trak.gfso.atcfunix.{{ cycle_YMDH }}", "{{ ARCDIR }}/trak.gfso.atcfunix.{{ cycle_YMDH }}"] |
| 71 | + - ["{{ COM_ATMOS_GENESIS }}/trak.gfso.atcfunix.altg.{{ cycle_YMDH }}", "{{ ARCDIR }}/trak.gfso.atcfunix.altg.{{ cycle_YMDH }}"] |
| 72 | + {% endif %} |
| 73 | + |
| 74 | + {% if DO_FIT2OBS %} |
| 75 | + fit2obs: |
| 76 | + |
| 77 | + mkdir: |
| 78 | + {% set VFYARC = ROTDIR + "/vrfyarch" %} |
| 79 | + - "{{ VFYARC }}/{{ RUN }}.{{ cycle_YMD }}/{{ cycle_HH }}" |
| 80 | + |
| 81 | + copy: |
| 82 | + {% for fhr in range(0, FHMAX_FITS + 1, 6) %} |
| 83 | + {% set sfcfile = "/" + head + "sfcf" + '%03d'|format(fhr) + ".nc" %} |
| 84 | + {% set sigfile = "/" + head + "atmf" + '%03d'|format(fhr) + ".nc" %} |
| 85 | + - ["{{COM_ATMOS_HISTORY}}/{{ sfcfile }}", "{{ VFYARC }}/{{ RUN }}.{{ cycle_YMD }}/{{ cycle_HH }}/{{ sfcfile }}"] |
| 86 | + - ["{{COM_ATMOS_HISTORY}}/{{ sigfile }}", "{{ VFYARC }}/{{ RUN }}.{{ cycle_YMD }}/{{ cycle_HH }}/{{ sigfile }}"] |
| 87 | + {% endfor %} |
| 88 | + |
| 89 | + {% endif %} |
| 90 | +{% endif %} |
| 91 | + |
| 92 | +{% if RUN == "gdas" %} |
| 93 | +gdas: # GDAS specific |
| 94 | + <<: *base |
| 95 | + <<: *deterministic |
| 96 | + gdas: |
| 97 | + copy: |
| 98 | + {% for fhr in range(0, FHMAX + 1, FHOUT) %} |
| 99 | + - ["{{ COM_ATMOS_GRIB_1p00 }}/{{ head }}pgrb2.1p00.f{{ '%03d' % fhr }}", "{{ ARCDIR }}/pgbf{{ '%02d' % fhr }}.{{ RUN }}.{{ cycle_YMDH }}.grib2"] |
| 100 | + {% endfor %} |
| 101 | +{% endif %} |
| 102 | + |
| 103 | +Ensemble: &ensemble # ENKFGDAS or ENKFGFS |
| 104 | + analysis: |
| 105 | + copy: |
| 106 | + # Copy ensemble analyses |
| 107 | + {% if DO_JEDIATMENS %} |
| 108 | + - ["{{ COM_ATMOS_ANALYSIS_ENSSTAT }}/{{ head }}atmensstat", "{{ ARCDIR }}/atmensstat.{{ RUN }}.{{ cycle_YMDH }}"] |
| 109 | + - ["{{ COM_ATMOS_ANALYSIS_ENSSTAT }}/{{ head }}atminc.ensmean.nc", "{{ ARCDIR }}/atmensstat.{{ RUN }}.{{ cycle_YMDH }}.ensmean.nc"] |
| 110 | + {% else %} |
| 111 | + - ["{{ COM_ATMOS_ANALYSIS_ENSSTAT }}/{{ head }}enkfstat", "{{ ARCDIR }}/enkfstat.{{ RUN }}.{{ cycle_YMDH }}"] |
| 112 | + - ["{{ COM_ATMOS_ANALYSIS_ENSSTAT }}/{{ head }}gsistat.ensmean", "{{ ARCDIR }}/gsistat.{{ RUN }}.{{ cycle_YMDH }}.ensmean"] |
| 113 | + {% endif %} |
| 114 | + |
| 115 | +{% if "enkf" in RUN %} |
| 116 | +{{ RUN }}: |
| 117 | + <<: *base |
| 118 | + <<: *ensemble |
| 119 | +{% endif %} |
0 commit comments