bulk_shear¶
-
metpy.calc.
bulk_shear
(pressure, u, v, height=None, bottom=None, depth=None)[source]¶ Calculate bulk shear through a layer.
Layer top and bottom specified in meters or pressure.
- Parameters
pressure (
pint.Quantity
) – Atmospheric pressure profileu (
pint.Quantity
) – U-component of windv (
pint.Quantity
) – V-component of windheight (
pint.Quantity
, optional) – Heights from soundingdepth (
pint.Quantity
, optional) – The depth of the layer in meters or hPa. Defaults to 100 hPa.bottom (
pint.Quantity
, optional) – The bottom of the layer in height or pressure coordinates. If using a height, it must be in the same coordinates as the given heights (i.e., don’t use meters AGL unless given heights are in meters AGL.) Defaults to the highest pressure or lowest height given.
- Returns
u_shr (
pint.Quantity
) – U-component of layer bulk shearv_shr (
pint.Quantity
) – V-component of layer bulk shear
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
heights
parameter toheight