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 docstring for vertical velocity functions to render equations #1066

Merged
merged 1 commit into from
Jun 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,7 @@ def static_stability(pressure, temperature, axis=0):

.. math:: \sigma = -\frac{RT}{p} \frac{\partial \ln \theta}{\partial p}

This formuala is based on equation 4.3.6 in [Bluestein1992]_.
This formula is based on equation 4.3.6 in [Bluestein1992]_.

Parameters
----------
Expand Down Expand Up @@ -2318,7 +2318,7 @@ def vertical_velocity_pressure(w, pressure, temperature, mixing=0):
assuming hydrostatic conditions on the synoptic scale.
By Equation 7.33 in [Hobbs2006]_,

.. math: \omega \simeq -\rho g w
.. math:: \omega \simeq -\rho g w

Density (:math:`\rho`) is calculated using the :func:`density` function,
from the given pressure and temperature. If `mixing` is given, the virtual
Expand Down Expand Up @@ -2360,11 +2360,11 @@ def vertical_velocity(omega, pressure, temperature, mixing=0):
:math:`\left(w = \frac{Dz}{Dt}\right)` assuming hydrostatic conditions on
the synoptic scale. By Equation 7.33 in [Hobbs2006]_,

.. math: \omega \simeq -\rho g w
.. math:: \omega \simeq -\rho g w

so that

.. math w \simeq \frac{- \omega}{\rho g}
.. math:: w \simeq \frac{- \omega}{\rho g}

Density (:math:`\rho`) is calculated using the :func:`density` function,
from the given pressure and temperature. If `mixing` is given, the virtual
Expand Down