parcel_profile_with_lcl_as_dataset

metpy.calc.parcel_profile_with_lcl_as_dataset(pressure, temperature, dewpoint)[source]

Calculate the profile a parcel takes through the atmosphere, returning a Dataset.

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) – The atmospheric pressure level(s) of interest. This array must be from high to low pressure.

  • temperature (pint.Quantity) – The 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) – The atmospheric dewpoint at the levels in pressure. The first entry should be at the same level as the first pressure data point.

Returns

profile (xarray.Dataset) – The interpolated profile with three data variables: ambient_temperature, ambient_dew_point, and profile_temperature, all of which are on an isobaric coordinate.

Notes

Only functions on 1D profiles (not higher-dimension vertical cross sections or grids).