-
Notifications
You must be signed in to change notification settings - Fork 194
Save marine LETKF yaml #3489
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
Save marine LETKF yaml #3489
Conversation
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.
Looks good
@@ -205,5 +205,9 @@ def finalize(self): | |||
# stage the desired diag files | |||
FileHandler({'mkdir': [os.path.join(letkfsaveconf.COMOUT_OCEAN_LETKF, 'diags')]}).sync() | |||
FileHandler({'copy': obs_files_to_copy}).sync() | |||
# yaml configurations | |||
yamls_to_copy = [] | |||
yamls_to_copy.append([letkfsaveconf.letkf_yaml_file, os.path.join(letkfsaveconf.COMOUT_OCEAN_LETKF, 'letkf.yaml')]) |
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.
This action is fine.
However, we are saving all the configurations to directory named COM_CONF
instead of COMOUT_OCEAN_LETKF
. COM_CONF
is a directory in COM
that has all the configurations of all the executables that are run in a cycle.
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.
Nice, I didn't know this! I'll take a look later this week to change this and maybe also some other marine yamls that get copied to a different directory.
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.
Finally getting back to this. Is there a place where things from COM_CONF get archived? I haven't found it in the code yet. I'm wondering if I need a custom addition for archiving this yaml, or if it's already handled some place.
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.
E.g.
global-workflow/parm/archive/gfsa.yaml.j2
Lines 14 to 15 in b1c60d4
# UFS configuration | |
- "{{ COMIN_CONF | relpath(ROTDIR) }}/ufs.input.nml" |
shows that the
gfsa.tar
will contain the ufs.input.nml
from COM_CONF
.
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.
A potential place to add this file to the archive list would be in this yaml.
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.
👍
ad2a5da
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.
Rest of the changes looks ok, but I have one comment that needs your attention.
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.
thanks @shlyaeva
{% set tmpl_dict = ({ '${ROTDIR}':ROTDIR, | ||
'${RUN}':RUN, | ||
'${YMD}':cycle_YMD, | ||
'${HH}':cycle_HH, | ||
'${MEMDIR}': "ensstat"}) %} | ||
{% set COMIN_CONF = COM_CONF_TMPL | replace_tmpl(tmpl_dict) %} |
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 think this should be moved to JGLOBAL_ENS_ARCHIVE_TARS by inserting a declaration here:
global-workflow/jobs/JGLOBAL_ENS_ARCHIVE_TARS
Lines 9 to 15 in e131fb1
MEMDIR="ensstat" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \ | |
COMIN_ATMOS_ANALYSIS_ENSSTAT:COM_ATMOS_ANALYSIS_TMPL \ | |
COMIN_ATMOS_HISTORY_ENSSTAT:COM_ATMOS_HISTORY_TMPL \ | |
COMIN_ICE_ANALYSIS_ENSSTAT:COM_ICE_ANALYSIS_TMPL \ | |
COMIN_OCEAN_ANALYSIS_ENSSTAT:COM_OCEAN_ANALYSIS_TMPL \ | |
COMIN_SNOW_ANALYSIS_ENSSTAT:COM_SNOW_ANALYSIS_TMPL \ | |
COMOUT_CONF:COM_CONF_TMPL |
But I'm OK with this being handled as part of #3767.
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.
Approve with a note on a future change request for the COMIN_CONF
declaration in master_enkf.yaml.j2
to be moved to JGLOBAL_ENS_ARCHIVE_TARS
.
Description
Saves marine LETKF yaml for posterity and for EVA verifications plots.
Note: this is not urgent as it's not required for v17.
Type of change
Change characteristics
How has this been tested?
Tested with the hybrid C384m025 experiment in ci/cases/gfsv17, with hera/intel. The yaml is saved in COMROOT as expected and successfully used for diagnostics plots (see NOAA-EMC/gdas-marine-viz#511 for an example).
Checklist