moist_air_specific_heat_pressure#
- metpy.calc.moist_air_specific_heat_pressure(specific_humidity)[source]#
Calculate C_pm, the specific heat at constant pressure for a moist air parcel.
- Parameters:
specific_humidity (
pint.Quantity
)- Returns:
pint.Quantity
– Specific heat capacity of air at constant pressure
Examples
>>> from metpy.calc import moist_air_specific_heat_pressure >>> from metpy.units import units >>> moist_air_specific_heat_pressure(11 * units('g/kg')) <Quantity(1014.07575, 'joule / kelvin / kilogram')>
Notes
Adapted from
\[c_{pm} = (1 - q_v) c_{pa} + q_v c_{pv}\]Eq 17, [Romps2017] using MetPy-defined constants in place of cited values.