mixed_parcel#
- metpy.calc.mixed_parcel(pressure, temperature, dewpoint, parcel_start_pressure=None, height=None, bottom=None, depth=None, interpolate=True)#
Calculate the properties of a parcel mixed from a layer.
Determines the properties of an air parcel that is the result of complete mixing of a given atmospheric layer.
- Parameters
pressure (
pint.Quantity
) – Atmospheric pressure profiletemperature (
pint.Quantity
) – Atmospheric temperature profiledewpoint (
pint.Quantity
) – Atmospheric dewpoint profileparcel_start_pressure (
pint.Quantity
, optional) – Pressure at which the mixed parcel should begin (default None)height (
pint.Quantity
, optional) – Atmospheric heights corresponding to the given pressures (default None)bottom (
pint.Quantity
, optional) – The bottom of the layer as a pressure or height above the surface pressure (default None)depth (
pint.Quantity
, optional) – The thickness of the layer as a pressure or height above the bottom of the layer (default 100 hPa)interpolate (bool, optional) – Interpolate the top and bottom points if they are not in the given data
- Returns
pint.Quantity
– Pressure of the mixed parcelpint.Quantity
– Temperature of the mixed parcelpint.Quantity
– Dewpoint of the mixed parcel
Notes
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
p
,dewpt
,heights
parameters topressure
,dewpoint
,height