moist_static_energy¶
-
metpy.calc.
moist_static_energy
(heights, temperature, specific_humidity)[source]¶ Calculate the moist static energy of parcels.
This function will calculate the moist static energy following equation 3.72 in [Hobbs2006].
Notes
\(T\) is temperature
\(z\) is height
\(q\) is specific humidity
- Parameters
heights (pint.Quantity) – Atmospheric height
temperature (pint.Quantity) – Air temperature
specific_humidity (pint.Quantity) – Atmospheric specific humidity
- Returns
pint.Quantity – The moist static energy