Calculate mixed-layer CAPE and CIN.
Calculate the convective available potential energy (CAPE) and convective inhibition (CIN)
of a given upper air profile and mixed-layer parcel path. CIN is integrated between the
surface and LFC, CAPE is integrated between the LFC and EL (or top of sounding).
Intersection points of the measured temperature profile and parcel profile are
logarithmically interpolated. Kwargs for mixed_parcel can be provided, such as depth.
Default mixed-layer depth is 100 hPa.
pressure (pint.Quantity) – Pressure profile
temperature (pint.Quantity) – Temperature profile
dewpoint (pint.Quantity) – Dewpoint profile
kwargs – Additional keyword arguments to pass to mixed_parcel
pint.Quantity – Mixed-layer Convective Available Potential Energy (CAPE)
pint.Quantity – Mixed-layer Convective INhibition (CIN)
cape_cin, mixed_parcel, parcel_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.