-
Notifications
You must be signed in to change notification settings - Fork 207
Remove path_exists Calls from stage_ic YAMLs or Move them to link_opt Sections
#4492
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
base: develop
Are you sure you want to change the base?
Changes from 17 commits
15cc4b2
1c26d83
f0a325b
f4fca24
08acf92
d2b8cce
01b3e9f
358ffd7
a01ce5f
059e17e
7244661
0b043c0
e443f6b
57f720f
9709b35
3e9376c
a9419f1
27db87e
cc11648
1f16262
8b6a0d0
69e9635
530be8e
3ee9e4c
0b917fa
1af29a9
879d6e0
5fb3dcc
ffac271
87201f6
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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| {# ============================================================================ #} | ||
| {# Analysis Staging Configuration #} | ||
| {# ============================================================================ #} | ||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR)) %} | ||
| analysis: | ||
| mkdir: | ||
| - "{{ COMOUT_ATMOS_ANALYSIS }}" | ||
|
|
@@ -10,7 +9,7 @@ analysis: | |
| {# -------------------------------------------------------------------- #} | ||
| {# JEDI Atmospheric Variational Data Assimilation #} | ||
| {# -------------------------------------------------------------------- #} | ||
| {% if DO_JEDIATMVAR %} | ||
| {% if DO_JEDIATMVAR or DO_JEDIATMENS %} | ||
|
|
||
| {# Cubed Sphere Grid Configuration #} | ||
| {% if ATMINC_GRID == "cubed_sphere_grid" %} | ||
|
|
@@ -35,9 +34,7 @@ analysis: | |
| {% endif %} | ||
|
|
||
| {% for ftype in ftypes %} | ||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z." ~ ftype ~ ".tile" ~ (itile+1) ~ ".nc") %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}.tile{{ itile+1 }}.nc", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
DavidHuber-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {% endif %} | ||
| {% endfor %} | ||
|
|
||
| {% endfor %} | ||
|
|
@@ -48,28 +45,34 @@ analysis: | |
| {# Atmospheric Increments #} | ||
| {% for ftype in ["increment.atm.i006.nc", "increment.atm.i009.nc", "increment.atm.i003.nc", | ||
| "recentered_increment.atm.i006.nc", "recentered_increment.atm.i009.nc", "recentered_increment.atm.i003.nc"] %} | ||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z." ~ ftype) %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
DavidHuber-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {% endif %} | ||
| {% endfor %} | ||
|
|
||
| {% endif %} | ||
|
|
||
| {# Bias Correction Files #} | ||
| {% for ftype in ["abias.txt", "abias_air.txt", "abias_int.txt", "abias_pc.txt", "rad_varbc_params.tar"] %} | ||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z." ~ ftype) %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
DavidHuber-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {% endif %} | ||
| {% endfor %} | ||
|
|
||
| {% endif %} | ||
|
|
||
| {# -------------------------------------------------------------------- #} | ||
| {# GSI Data Assimilation (Non-JEDI) #} | ||
| {# -------------------------------------------------------------------- #} | ||
| {% else %} | ||
|
|
||
| {% if not DO_JEDIATMVAR %} | ||
| {% if DOIAU or DOIAU_ENKF %} | ||
| {% for ftype in ["increment.atm.i003.nc", "increment.atm.i009.nc", | ||
| "recentered_increment.atm.i003.nc", "recentered_increment.atm.i009.nc"] %} | ||
|
||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z." ~ ftype) %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
| {% endif %} | ||
| {% endfor %} | ||
| {% endif %} | ||
| {# All GSI Analysis Files #} | ||
| {% for ftype in ["abias.txt", "abias_air.txt", "abias_int.txt", "abias_pc.txt", | ||
| "increment.atm.i006.nc", "increment.atm.i009.nc", "increment.atm.i003.nc", "radstat.tar", | ||
| "recentered_increment.atm.i006.nc", "recentered_increment.atm.i009.nc", "recentered_increment.atm.i003.nc", "rad_varbc_params.tar"] %} | ||
| "increment.atm.i006.nc", "radstat.tar", | ||
| "recentered_increment.atm.i006.nc", "rad_varbc_params.tar"] %} | ||
|
||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z." ~ ftype) %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
DavidHuber-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {% endif %} | ||
|
|
@@ -81,21 +84,19 @@ analysis: | |
| {# GSI Soil Analysis (Land DA) #} | ||
| {# -------------------------------------------------------------------- #} | ||
| {% if DO_GSISOILDA %} | ||
|
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. probably another warm start only file |
||
|
|
||
| {# Surface Increments #} | ||
| {% for ftype in ["increment.sfc.i003.nc", "increment.sfc.i006.nc", "increment.sfc.i009.nc"] %} | ||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z." ~ ftype) %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
| {% endif %} | ||
| {% endfor %} | ||
|
|
||
| {# Surface Increments #} | ||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z.increment.sfc.i006.nc") %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.increment.sfc.i006.nc", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
| {% endif %} | ||
| {# Land IAU Increments (Tiled) #} | ||
| {% if DO_LAND_IAU %} | ||
| {# Surface Increments #} | ||
| {% for ftype in ["increment.sfc.i003.nc", "increment.sfc.i009.nc"] %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
DavidHuber-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {% endfor %} | ||
| {% for itile in range(1,7) %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS | relpath(ROTDIR) }}/increment.sfc.tile{{ itile }}.nc", "{{ COMOUT_ATMOS_ANALYSIS }}"] | ||
| {% endfor %} | ||
| {% endif %} | ||
|
|
||
| {% endif %} | ||
|
|
||
| {% endif %} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,10 +11,14 @@ ocean_RT: | |
| {% set file = increment_mem_path %} | ||
| - ["{{ file }}", "{{ COMOUT_OCEAN_ANALYSIS }}"] | ||
|
|
||
| {% if path_exists(ICSDIR) %} | ||
| {% for ftype in ["MOM.res.nc", "MOM.res_1.nc", "MOM.res_2.nc", "MOM.res_3.nc"] %} | ||
| {% if DO_OCN %} | ||
|
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. Same, |
||
| {% set file = restart_mem_path ~ 'MOM.res.nc' %} | ||
| - ["{{ file }}", "{{ COMOUT_OCEAN_RESTART_PREV }}"] | ||
| {% if OCNRES > 25 %} | ||
| {% for ftype in ["MOM.res_1.nc", "MOM.res_2.nc", "MOM.res_3.nc"] %} | ||
| # Include base file for restart files | ||
| {% set file = restart_mem_path ~ ftype %} | ||
| {% set file = restart_mem_path ~ ftype %} | ||
| - ["{{ file }}", "{{ COMOUT_OCEAN_RESTART_PREV }}"] | ||
| {% endfor %} | ||
| {% endfor %} | ||
| {% endif %} | ||
| {% endif %} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_MED_RESTART_PREV | relpath(ROTDIR) ~ "/" ~ m_prefix ~ ".ufs.cpld.cpl.r.nc") %} | ||
| ocean_mediator: | ||
| mkdir: | ||
| - "{{ COMOUT_MED_RESTART_PREV }}" | ||
| link_req: | ||
| {% if DO_OCN && EXP_WARM_START %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_MED_RESTART_PREV | relpath(ROTDIR) }}/{{ m_prefix }}.ufs.cpld.cpl.r.nc", "{{ COMOUT_MED_RESTART_PREV }}"] | ||
| {% endif %} # path exists | ||
| {% endif %} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,9 @@ | ||
| wave: | ||
| mkdir: | ||
| - "{{ COMOUT_WAVE_RESTART_PREV }}" | ||
| link_req: | ||
| link_opt: | ||
| {% if DO_WAVE %} | ||
|
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. The |
||
| {% set ww3_file = ICSDIR ~ "/" ~ COMOUT_WAVE_RESTART_PREV | relpath(ROTDIR) ~ "/" ~ m_prefix ~ ".restart.ww3" %} | ||
| {% if path_exists(ww3_file ~ ".nc") %} | ||
| - ["{{ ww3_file }}.nc" , "{{ COMOUT_WAVE_RESTART_PREV }}/{{ m_prefix }}.restart.ww3.nc"] | ||
| {% else %} | ||
| {% if path_exists(ww3_file) %} | ||
| - ["{{ ww3_file }}" , "{{ COMOUT_WAVE_RESTART_PREV }}/{{ m_prefix }}.restart.ww3"] | ||
|
Comment on lines
7
to
8
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. @AntonMFernando-NOAA I think this is one location where What I would suggest is pseudocode In other words, only add one |
||
| {% endif %} | ||
| {% endif %} | ||
| {% endif %} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bbakernoaa @CoryMartin-NOAA is there a case where the
aero_varbc_params.tarfile will not be present? Is there a flag available to identify that case?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually aren't using VarBc for aerosols for GCAFSv1, we thought we might but decided against it. When cycling it makes an empty file I believe. Can we check if it's the first half cycle or not and only expect to copy it when not the first cycle?