-
Notifications
You must be signed in to change notification settings - Fork 415
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
Fix q_vector units w/ default static stability #3690
base: main
Are you sure you want to change the base?
Conversation
There unfortunately is, as Holton (2013) does not include the 1/sigma factor, which was unfortunately the (undocumented except in the issue tracker) intended behavior when it was originally written. Though, I'm not sure if that difference of definition is enough to stick with the old behavior or not! EDIT: See #3689 (comment) for a much better discussion on this. Based on this insight, I would concur that the best move is likely moving away from the prior behavior and do something like this PR. |
There's no reason the units should change in this case, just assign proper units to the default unity value of static stability.
e1e3ae8
to
19065c5
Compare
The static stability at the pressure level. Defaults to 1 J/ kg / Pa^2 if not given | ||
to calculate the Q-vector without factoring in static stability. |
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.
With the insight of @kgoebber's comment here, I think it would be helpful to include a bit more detail here (or elsewhere in the docstring) on how static stability is important for this calculation, and perhaps recommend, when possible, to not rely on this default?
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 think that's reasonable, and I'm also inclined to at least pick a default that has a sensible scale, even if it does change results.
There's no reason the units should change in this case, just assign proper units to the default unity value of static stability.
Description Of Changes
Checklist