parcel_profile_with_lcl¶
-
metpy.calc.
parcel_profile_with_lcl
(pressure, temperature, dewpoint)[source]¶ Calculate the profile a parcel takes through the atmosphere.
The parcel starts at temperature, and
dewpoint
, lifted up dry adiabatically to the LCL, and then moist adiabatically from there. pressure specifies the pressure levels for the profile. This function returns a profile that includes the LCL.- Parameters
pressure (
pint.Quantity
) – Atmospheric pressure level(s) of interest. This array must be from high to low pressure.temperature (
pint.Quantity
) – Atmospheric temperature at the levels in pressure. The first entry should be at the same level as the first pressure data point.dewpoint (
pint.Quantity
) – Atmospheric dewpoint at the levels in pressure. The first entry should be at the same level as the first pressure data point.
- Returns
pressure (
pint.Quantity
) – The parcel profile pressures, which includes the specified levels and the LCLambient_temperature (
pint.Quantity
) – Atmospheric temperature values, including the value interpolated to the LCL levelambient_dew_point (
pint.Quantity
) – Atmospheric dewpoint values, including the value interpolated to the LCL levelprofile_temperature (
pint.Quantity
) – The parcel profile temperatures at all of the levels in the returned pressures array, including the LCL
Notes
Only functions on 1D profiles (not higher-dimension vertical cross sections or grids). Also, will only return Pint Quantities, even when given xarray DataArray profiles. To obtain a xarray Dataset instead, use
parcel_profile_with_lcl_as_dataset
instead.Changed in version 1.0: Renamed
dewpt
parameter todewpoint