- metpy.calc.el(pressure, temperature, dewpoint, parcel_temperature_profile=None, which='top')¶
Calculate the equilibrium level.
This works by finding the last intersection of the ideal parcel path and the measured environmental temperature. If there is one or fewer intersections, there is no equilibrium level.
pint.Quantity) – Atmospheric pressure profile
pint.Quantity) – Temperature at the levels given by pressure
pint.Quantity) – Dewpoint at the levels given by pressure
pint.Quantity, optional) – The parcel’s temperature profile from which to calculate the EL. Defaults to the surface parcel profile.
which (str, optional) – Pick which LFC to return. Options are ‘top’, ‘bottom’, ‘wide’, ‘most_cape’, and ‘all’. ‘top’ returns the lowest-pressure EL, default. ‘bottom’ returns the highest-pressure EL. ‘wide’ returns the EL whose corresponding LFC is farthest away. ‘most_cape’ returns the EL that results in the most CAPE in the profile.
Only functions on 1D profiles (not higher-dimension vertical cross sections or grids). Since this function returns scalar values when given a profile, this will return Pint Quantities even when given xarray DataArray profiles.
Changed in version 1.0: Renamed