-
Notifications
You must be signed in to change notification settings - Fork 202
Refactor Stage IC: Move COM and Cycle Variables and Logic from YAML Master Templates to Python Scripts #3984
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?
Refactor Stage IC: Move COM and Cycle Variables and Logic from YAML Master Templates to Python Scripts #3984
Conversation
…ando-NOAA/global-workflow into enabler/stage_archive
…ando-NOAA/global-workflow into enabler/stage_archive
{% endif %} | ||
|
||
{% if ENSMEM == 0 %} | ||
{% if memdir == 0 %} |
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.
I don't think this is needed.
ush/python/pygfs/task/stage_ic.py
Outdated
# assign rRUN to RUN | ||
case_vars.rRUN = case_vars.RUN | ||
# case specific rRUN | ||
if case_vars.RUN in ['gfs', 'gcdas', 'enkfgdas']: |
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.
Doesn't stage_ic
also run on RUN=gdas
?
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.
I like this overall design a lot better than the Jinja-based logic.
ush/python/pygfs/task/stage_ic.py
Outdated
if cycle_vars.previous_cycle: | ||
cycle_vars.previous_cycle_YMD = cycle_vars.previous_cycle.strftime("%Y%m%d") | ||
cycle_vars.previous_cycle_HH = cycle_vars.previous_cycle.strftime("%H") | ||
cycle_vars.m_index = cycle_vars.current_cycle.hour // 6 |
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.
Should 6
be replaced by assim_freq
?
{% set imem = mem - first_mem %} | ||
{% set COMOUT_ATMOS_ANALYSIS_MEM = COMOUT_ATMOS_ANALYSIS_MEM_list[imem] %} | ||
{% if DO_JEDIATMVAR %} | ||
{% for itile in range(6) %} |
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.
Should probably be replaced by num_tiles
.
Description
stage_ic.py
Resolves #3946
Type of change
Change characteristics
How has this been tested?
Checklist