Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dopplershift
Copy link
Member

@dopplershift dopplershift commented Nov 14, 2024

Description Of Changes

With the final discussion in #3689, this tries to improve the documentation to make clear the option to pass in static_stability, as well as the relationship to various GEMPAK functions.

Checklist

@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Calc Pertains to calculations labels Nov 14, 2024
@dopplershift dopplershift added this to the 1.7.0 milestone Nov 14, 2024
@dopplershift dopplershift requested a review from a team as a code owner November 14, 2024 00:01
@dopplershift dopplershift requested review from dcamron and removed request for a team November 14, 2024 00:01
@jthielen
Copy link
Collaborator

jthielen commented Nov 14, 2024

There's no reason the units should change in this case, just assign proper units to the default unity value of static stability.

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.

Clarify the optional role of static_stability and how that maps to
various GEMPAK calculations. Also ensure that values for
`static_stability` are properly checked for dimensionality.
Helps make clear that this is an option for this calculation. Addresses
part of Unidata#3689.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Calc Pertains to calculations Type: Bug Something is not working like it should
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Q_Vector returns wrong units
2 participants