-
Notifications
You must be signed in to change notification settings - Fork 365
Add the CF-compliant time variable in the test case #634
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: ocean/develop
Are you sure you want to change the base?
Conversation
@wenshanw, following up on our chat on Wednesday, here is how I would suggest setting the units of I haven't figured out a way to replace an attribute. MPAS can add them or get them. We could obviously add this capability but it would be much easier to just not set the
To do this, we would:
|
src/core_ocean/Registry.xml
Outdated
<var name="xtime_start" type="text" dimensions="Time" units="unitless" | ||
description="model time, with format 'YYYY-MM-DD_HH:MM:SS'" | ||
/> | ||
<var name="xtime_end" type="text" dimensions="Time" units="unitless" | ||
description="model time, with format 'YYYY-MM-DD_HH:MM:SS'" | ||
/> |
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.
@wenshanw, I don't think we want these as general variables. They already exist in the time-series stats analysis member and I don't think they make sense anywhere else. All other output is a snapshot so there is no start and end time.
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.
Sure, I will remove them in my next commit (I didn't intend to include them in this commit...)
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.
Okay, sounds good. Just happened to see that and figured it might save you some time...
@xylar and I spoke about this today. The main problem is that each stream needs to write Time and time_bnds with different values. I think a possible approach is to add it to the streams object itself. Here:
Uninterested cores could leave it default off. It could be specified in the stream file with
or something similar. If it turned on, then write Time and time_bnds with the netcdf compliant format - that would be a change to Then in an analysis member we can access the stream associated with the AM, and set the The fundamental issue this works around is that the variable |
|
@mark-petersen, can you create a separate issue for discussing this so we can bring in Michael Duda and others that might be interested? I don't think they will want to discuss it in an |
Yes. Give me a day, I'd like to experiment with the streams code so I can propose a good starting point. |
What is the status of this PR? We'd like this working for upcoming E3SM v2 simulations. |
@rljacob, I'm afraid that is not going to be possible. This is another change that requires modification of the MPAS framework, and there isn't agreement among the developers yet about how this can be accomplished. We are working on it but the v2 deadline is impossible at this point. |
I agree that the V2 deadline is too short for framework changes. I do have two branches that make progress on this, and I will post more information today. |
@mark-petersen, is this something you have time to pursue again? It would be great to get this fixed? Maybe we need to move over to E3SM with this work, though. |
@mark-petersen, I'd like to have a chat with you about a process for revisiting this work and #677, now that we have moved to E3SM. |
see #665 (comment) |
Added the CF-compliant time variable in the test case with the
calendar
attribute