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 divergence unit requirement #1197

Merged
merged 1 commit into from
Oct 7, 2019
Merged

Conversation

kgoebber
Copy link
Collaborator

@kgoebber kgoebber commented Oct 6, 2019

Description Of Changes

This change removes the requirement that divergence must take wind speed. There are other variables that the divergence of a vector can be taken, which is not wind components. The prime example is Q-vectors.

Checklist

@jthielen
Copy link
Collaborator

jthielen commented Oct 7, 2019

Would it also make sense to update the docstring to not just refer to wind?

Copy link
Contributor

@zbruick zbruick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @jthielen. Can we update the first line and the descriptions of u and v below as well to be more generic?

src/metpy/calc/kinematics.py Outdated Show resolved Hide resolved
@zbruick zbruick added Area: Calc Pertains to calculations Type: Bug Something is not working like it should labels Oct 7, 2019
@zbruick zbruick added this to the 0.12 milestone Oct 7, 2019
Copy link
Contributor

@zbruick zbruick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending CI

@zbruick zbruick merged commit 4ae9545 into Unidata:master Oct 7, 2019
@dopplershift dopplershift modified the milestones: 0.12, 0.11.1 Oct 9, 2019
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.

divergence calculation requires speed
4 participants