-
Notifications
You must be signed in to change notification settings - Fork 52
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
New ocean conservation task #988
Conversation
440fa4e
to
01c8887
Compare
@cbegeman, yes, that's the way to handle |
@xylar Thanks. Then it's ready to review. Let me know if you see any errors associated with |
FYI, I'll probably change the default behavior in |
Could you post the error you are getting? |
I don't have it handy but it was something about |
Looks like the black line run doesn't start until 6 months in? Are the units here |
I think the conversion here is right. MPAS-Analysis/mpas_analysis/ocean/conservation.py Lines 519 to 523 in efacd8f
If you look at the mass fluxes, they are also small: |
ok, I was expecting a trend in Paolo DISMF of around -0.2 mm/yr, but I guess with these first few years it's super early. Thanks for checking! |
@xylar Here we go. Still a problem after purging:
|
I think that's because of the 12-month averaging window but now that you mention it, there is a different starting point for the two curves. I'll look into it. |
efacd8f
to
84530af
Compare
@cbegeman, I think the issue with However, at this point I'm wondering if we really want different time bounds on the conservation time series than other time series. For example, when folks run through zppy, there will only be one set of time bounds for time series regardless of whether that's "normal" time series, the El Nino index, or conservation. Maybe it's more trouble than it's worth to have separate time bounds. |
This is presumably because it's a centered annual rolling mean so it starts half a year in. |
It looks like something funky is happening when time averaging is enabled. The run without time averaging looks fine. I think this issue is outside the scope of this PR. @xylar would you agree? |
I went back and forth about this. Is it too confusing though if we have a separate [conservation] section but all of the config options except |
@cbegeman, I don't see an obvious issue. There's a really strong seasonal cycle and it's nearly impossible to know what the running mean should look like once it's removed, so to me the 2 plots could be totally consistent with one another. |
I think it's totally fine if most of the config options are from |
@xylar The issue is that the black line above doesn't extend all the way to 01-06. |
Great. I'll make this change then. I will also change the name of the config section to |
Ah, I hadn't noticed that. I agree, that's weird. We should look into that. |
84530af
to
398c7b0
Compare
@darincomeau Thanks for pointing out the small values. There was an issue with the units conversion with clauses such as |
I'm not sure what change solved the problem, but it appears to be solved now. |
Great! I was hoping so! |
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 have comments on the implementation, but the end result looks great!
Thanks @cbegeman , this is going to be so nice to have!
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.
One small fix. Otherwise, things look good as far as I can tell on my phone. Please merge when this is fixed or ping me and I'll do it.
398c7b0
to
5ac7568
Compare
@xylar This is ready to merge when you have a chance. I have retested with the latest changes. It's not giving me the option so perhaps I don't have permission. |
Great! Just trying to get CI to pass. |
The CI issue is clearly unrelated to this PR. I will look into it when I get back. |
This PR adds the capability to create time series plots representing various terms from the ocean's
conservationCheck
analysis member. This capability is given as a new task with its own config sectionconservation
, but appears as a section in theTime series
gallery when analysis is generated.Generally, the variables from
conservationCheckOutput
stream are unmodified when they are plotted. The modifications that this code makes to some variables are:Example output is located here:
https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.cbegeman/analysis/20240223.v3.LR.CRYO1850-DISMF.paolo.chrysalis/ocean/index.html#timeseries