Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,7 @@ def density(pressure, temperature, mixing_ratio, molecular_weight_ratio=mpconsts
Total atmospheric pressure

temperature: `pint.Quantity`
Air temperature
Air temperature (or the virtual temperature if the mixing ratio is set to 0)

mixing_ratio : `pint.Quantity`
Mass mixing ratio (dimensionless)
Expand All @@ -1783,7 +1783,7 @@ def density(pressure, temperature, mixing_ratio, molecular_weight_ratio=mpconsts

Notes
-----
.. math:: \rho = \frac{p}{R_dT_v}
.. math:: \rho = \frac{\epsilon p\,(1+w)}{R_dT\,(w+\epsilon)}

.. versionchanged:: 1.0
Renamed ``mixing`` parameter to ``mixing_ratio``
Expand Down