-
Notifications
You must be signed in to change notification settings - Fork 382
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
Add CF-compliant Time coordinate #5202
Conversation
This variable has CF-compliant units and calendar. To accommodate the CF-compliant units, a new config option has been added to supply the reference time, 0001-01-01 by default.
I'm adding |
Okay, I just pointed at the wrong baseline path. After fixing this, all tests pass. (Not sure why validation failures are showing up as execution failures for a few tests but it seems to have to do with depending on a cached step -- nothing to do with this PR in any case.) |
I'll run some E3SM tests as well, including a 5-year QU240wLI test so I can make sure MPAS-Analysis still runs fine. |
@mark-petersen and @cbegeman, let me know what kind of testing you'd like me to do to help with the review process. |
I ran the
|
I am having trouble with a BFB test I was trying to run, as reported in #5204 I am in the process of running a 5-year QU240wLI run for MPAS-Analysis testing. In that simulation, I'm seeing:
the expected first value for |
In MPAS-Analysis, I'm seeing the following type of error for WOCE and SOSE transects:
This suggests that there will, indeed, need to be some fixes to MPAS-Analysis to support the new time coordinate. These fixes will need to be coordinated so that they are available in a new E3SM-Unified release before this change goes in. |
The MPAS-Analysis fix is here: I'm still testing it out but will update here. |
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.
Approving based on testing in E3SM-Ocean-Discussion#19.
@xylar Let me know if you'd like me to run any additional tests.
Passes nightly suite with gnu debug and intel. gnu matches bfb with previous. |
Passes |
I tested here
with
This works correctly for daily output. Here I use:
output is
It appears to have trouble with 12-hourly frequency:
there seems to be some integer rounding on the start bounds:
But maybe time_bounds is not mean to be sub-daily for climate data? It would be nice to put units on the time_bounds, if allowed by the CF convention:
|
@mark-petersen, |
@mark-petersen, changing to |
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.
Approving by inspection and testing above. Thanks!
Thanks @mark-petersen! |
I think we don't need to fix the issue in #5202 (comment) before merging. I will create a compass test case to investigate this and hopefully that will help us fix it. |
The issue in MPAS-Analysis mentioned in #5202 (comment) has been fixed in v1.7.2. I plan to do an emergency release of E3SM-Unified soon that includes this fix. |
I tested |
Add CF-compliant Time coordinate This variable has CF-compliant units and calendar. To accommodate the CF-compliant units, a new config option has been added to supply the reference time, 0001-01-01 by default. This merge also adds a Time_bnds variable. For output from a single point in time, the values in Time_bnds are the same as Time. For time-averaged (or min or max) output, Time_bnds contains the start and end times of the interval covered by the output. [BFB]
passes:
merged to next |
merged to master |
Thanks so much, @jonbob! And to @mark-petersen and @cbegeman for the reviews! I'm excited to finally have this in E3SM! |
Update bld files to catch missed mpas-o Registry change A previous PR, #5202, brought in a new config in the mpas-ocean Registry file, but the bld files were not updated to match. This brings the E3SM bld files up-to-date with the Registry [NML] [BFB]
Update bld files to catch missed mpas-o Registry change A previous PR, #5202, brought in a new config in the mpas-ocean Registry file, but the bld files were not updated to match. This brings the E3SM bld files up-to-date with the Registry [NML] [BFB]
This variable has CF-compliant units and calendar. To accommodate the CF-compliant units, a new config option has been added to supply the reference time, 0001-01-01 by default.
This merge also adds a
Time_bnds
variable. For output from a single point in time, the values inTime_bnds
are the same asTime
. For time-averaged (or min or max) output,Time_bnds
contains the start and end times of the interval covered by the output.See E3SM-Ocean-Discussion#19 for more discussion
[BFB]