dry_lapse#
- metpy.calc.dry_lapse(pressure, temperature, reference_pressure=None, vertical_dim=0)[source]#
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 byreference_pressure
.- Parameters:
pressure (
pint.Quantity
) – Atmospheric pressure level(s) of interesttemperature (
pint.Quantity
) – Starting temperaturereference_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 bypressure
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
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 toreference_pressure