dry_lapse#

metpy.calc.dry_lapse(pressure, temperature, reference_pressure=None, vertical_dim=0)#

Calculate the temperature at a level assuming only dry processes.

This function lifts a parcel starting at temperature, conserving potential temperature. The starting pressure can be given by reference_pressure.

Parameters
  • pressure (pint.Quantity) – Atmospheric pressure level(s) of interest

  • temperature (pint.Quantity) – Starting temperature

  • reference_pressure (pint.Quantity, optional) – Reference pressure; if not given, it defaults to the first element of the pressure array.

Returns

pint.Quantity – The parcel’s resulting temperature at levels given by pressure

Examples

>>> from metpy.calc import dry_lapse
>>> from metpy.units import units
>>> plevs = [1000, 925, 850, 700] * units.hPa
>>> dry_lapse(plevs, 15 * units.degC).to('degC')
<Quantity([ 15.           8.65249458   1.92593808 -12.91786723], 'degree_Celsius')>

See also

moist_lapse

Calculate parcel temperature assuming liquid saturation processes

parcel_profile

Calculate complete parcel profile

potential_temperature

Notes

Only reliably functions on 1D profiles (not higher-dimension vertical cross sections or grids) unless reference_pressure is specified.

Changed in version 1.0: Renamed ref_pressure parameter to reference_pressure

Examples using metpy.calc.dry_lapse#

Mountain Problem

Mountain Problem

Mountain Problem