File metadata and Forecast reference Time Scalar to reduce post processing from lfric core#90
File metadata and Forecast reference Time Scalar to reduce post processing from lfric core#90mo-marqh wants to merge 1 commit into
Conversation
|
mo-marqh - Before I review can i seek clarification about the failing tests listed in the description, is this PR ready for review? Also, could you rename the PR to give a better desctiption of the changes please |
failing tests need fixing, there are only two left to do, I'll get right on that. Pr renamed |
|
regarding the two failing rose ana tests in lfric inputs Lottie Turner (@mo-lottieturner) these are due to the new forecast_reference_time coordinate being included in the output file and referenced by the data variables. so, in the updated & reference changes such as are added. this is expected behaviour for this change, but would benefit from Lottie Turner (@mo-lottieturner) 's view if approved, then i think that static data files located in |
|
cross checking with input UM file: noting
import iris.fileformats.um as um
fields = list(um.um_to_pp('/home/users/umadmin/standard_jobs/lfricinputs/inputs/aquaplanet.lbc.ff'))
[print(f'lbtim: {f.lbtim} | lbyr: {f.lbyrd} | lbmond: {f.lbmond} | lbdatd: {f.lbdatd} | lbhrd: {f.lbhrd} | lbmind: {f.lbmind} | lbsecd: {f.lbsecd}') for f in fields[0:1]]which is consistent with (noting that |
|
Hi Mark, thanks for the ping. When I nccmp the new output with the kgo (as in the rose-ana test, without the var-diff-count limit) I get this:
which seems different enough to your expected changes of adding forecast_reference_time that I'm wary of it |
Ed Hone (EdHone)
left a comment
There was a problem hiding this comment.
The way the changes have been implemented is completely fine - my only question is whether the frt/fp time formatting needs to be so ubiquitous across the code base (obviously it was before, but that was more a limitation of the previous implementation). My understanding is that its more essential for NWP than for climate runs. Would it be possible to get some clarity from some of the downstream data owners on whether there is a different expectation for the formatting of time for different configurations.
I would also suggest this would make it easier to correct the LFRic inputs issues as the start dumps probably shouldn't have time formatted as frt/fp
There was a problem hiding this comment.
As a downstream consumer of LFRic data (via CSET), the removal of forecast_period should not cause any major problems, as we already have have code to construct it, as it is occasionally missing. Having just the validity time as the only varying dimension of time in a forecast is easier to reason about (noting #423).
Also in this pull request is a change from time_origin to the CF compliant forecast_reference_time. I am strongly supportive of this renaming, as it is something we currently have to fix downstream when we load the data.
There was a problem hiding this comment.
I'm unclear why this file has been changed, but other "grid_def" files have not?
And also, what is the implication for adding the frt to the grid_defs for diagnostics which don't use the grid_defs (there are plenty that just use axis and domain refs)? Will these be missing the frt? Should it be added to either the domain or axis refs instead?
|
There will be a linked lfric-jedi PR to match this, I will link it once it's ready. |
DanStoneMO
left a comment
There was a problem hiding this comment.
lfric-jedi PR now live at: https://github.com/JCSDA-internal/lfric-jedi/pull/1254
c6b01dc to
dc64355
Compare
|
Your CLA signature was found on the base branch, but you appear to have modified the CONTRIBUTORS.md file in this PR. Please do not edit the CONTRIBUTORS.md file. If you have already signed the CLA, revert changes to the file and your signature will be picked up. |
PR Summary
Sci/Tech Reviewer: Ed Hone (@EdHone)
Code Reviewer: Erica Neininger (@ericaneininger)
This change provides extra configuration to the output file metadata, using an XIOS
scalarto define a container for a forecast reference time that will be populated by lfric_core's lfric_xios interface (see linked PR)Code Quality Checklist
(Some checks are automatically carried out via the CI pipeline)
style guidelines
readability of the code
Testing
acceptable (eg. kgo changes)
tests, unit tests, etc.)
and have tests been allocated to an appropriate testing group (i.e. the
developer tests are for jobs which use a small amount of compute resource
and complete in a matter of minutes)
trac.log
Test Suite Results - lfric_apps - scalar_frt/run5
Suite Information
Task Information
❌ failed tasks - 2
⌛ waiting tasks - 2
Security Considerations
Performance Impact
performance measurements have been conducted
AI Assistance and Attribution
of Generative AI tool name (e.g., Met Office Github Copilot Enterprise,
Github Copilot Personal, ChatGPT GPT-4, etc) and I have followed the
Simulation Systems AI policy
(including attribution labels)
Documentation
confirmed that it builds correctly
PSyclone Approval
inteface, optimisation scripts, LFRic data structure code) then please
contact the
tooscollabdevteam@metoffice.gov.uk
Sci/Tech Review
Please alert the code reviewer via a tag when you have approved the SR
Code Review