Skip to content

Commit

Permalink
Merge pull request #1066 from jthielen/doc-fix
Browse files Browse the repository at this point in the history
Fix docstring for vertical velocity functions to render equations
  • Loading branch information
dopplershift committed Jun 19, 2019
2 parents 39c6f45 + 378ba48 commit fc7b043
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit fc7b043

Please sign in to comment.