moist_static_energy#

metpy.calc.moist_static_energy(height, temperature, specific_humidity)#

Calculate the moist static energy of parcels.

This function will calculate the moist static energy following equation 3.72 in [Hobbs2006].

Parameters
Returns

pint.Quantity – Moist static energy

Examples

>>> from metpy.calc import moist_static_energy
>>> from metpy.units import units
>>> moist_static_energy(1000 * units.meters, 8 * units.degC, 8 * units('g/kg'))
<Quantity(312.275277, 'kilojoule / kilogram')>

Notes

\[\text{moist static energy} = c_{pd} T + gz + L_v q\]
  • \(T\) is temperature

  • \(z\) is height

  • \(q\) is specific humidity

Changed in version 1.0: Renamed heights parameter to height