-
Notifications
You must be signed in to change notification settings - Fork 36
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
Make ozone photochem diagnostics match parametrization terms #196
Conversation
The ozone photochemistry parametrization is a first-order Taylor expansion of the net ozone production in three variables. This commit changes the four diagnostics the parametrization manages to match the four terms in the Taylor expansion. When comparing to the implementation in lines 301-304, note that it is implicit in the model ozone mixing ratio, so line 301 has the first term and the second half of the second term, while the first half of the second term is part of the denominator on line 304. I could use ozi or ozib for an explicit approximation to that term, but we already calculated the value needed for the implicit calculation actually used for the update.
@DWesl I think these changes are fine. |
For the first diagnostic, yes: it looks like the first line of the tendency code. The second diagnostic would likely have ended up a copy of |
@DWesl Is there a reason that this is still in draft mode? Do you need help running UFS regression tests? |
I hadn't entirely realized I could run the regression tests myself. I was waiting until I could recompile and check whether the new diagnostics made sense. I have data now, and should have some idea in the next few hours. |
@DWesl After some thinking I'm not sure we need to make this change. |
Could you clarify what you mean by "inconsistent with how it's formulated above"? The second diagnostic doesn't show up explicitly in the implementation:
As mentioned previously, I suspect this would end up being a copy of dtend_o3_photochem if that is calculated in whatever function calls run_o3prog_2015
The first diagnostic excludes the rest of the implicit update for ozone:
if you really want to match the diagnostics to the lines of the implementation, having the second diagnostic match this line, or perhaps just the denominator of this line, might work better? Personally, I find it easier to interpret diagnostics that match the result of the implementation rather than the details, which is related to why I used |
In other words, Plots of these diagnostics look sensible, and reflect changes in the parametrization. |
@DWesl Since this is a relatively minor change, I'd like to combine it with others for purposes of the UFS merge queue. My understanding is that it should change regression test results for any tests that have diagnostics activated and that output the diagnostic that you're changing. Are you OK with me combining this with other PRs? |
Yes, that matches my understanding.
Yes |
For future reference: changes baselines for tests that use |
Combined into #205 |
The ozone photochemistry parametrization is a first-order Taylor expansion of the net ozone production in three variables. This commit changes the four diagnostics the parametrization manages to match the four terms in the Taylor expansion.
When comparing to the implementation in lines 301-304, note that it is implicit in the model ozone mixing ratio, so line 301 has the first term and the second half of the second term, while the first half of the second term is part of the denominator on line 304.
I could use
ozi
orozib
for an explicit approximation to that term, but we already calculated the value needed for the implicit calculation actually used for the update.I was told to open the PR here rather than the NCAR repository (NCAR#1068)