mean_pressure_weighted

metpy.calc.mean_pressure_weighted(pressure, *args, heights=None, bottom=None, depth=None)[source]

Calculate pressure-weighted mean of an arbitrary variable through a layer.

Layer top and bottom specified in height or pressure.

Parameters
  • pressure (pint.Quantity) – Atmospheric pressure profile

  • args (pint.Quantity) – Parameters for which the pressure-weighted mean is to be calculated.

  • heights (pint.Quantity, optional) – Heights from sounding. Standard atmosphere heights assumed (if needed) if no heights are given.

  • bottom (pint.Quantity, optional) – The bottom of the layer in either the provided height coordinate or in pressure. Don’t provide in meters AGL unless the provided height coordinate is meters AGL. Default is the first observation, assumed to be the surface.

  • depth (pint.Quantity, optional) – The depth of the layer in meters or hPa.

Returns

  • pint.Quantity – u_mean: u-component of layer mean wind.

  • pint.Quantity – v_mean: v-component of layer mean wind.