cross_section_components#

metpy.calc.cross_section_components(data_x, data_y, index='index')[source]#

Obtain the tangential and normal components of a cross-section of a vector field.

Parameters:
  • data_x (xarray.DataArray) – The input DataArray of the x-component (in terms of data projection) of the vector field.

  • data_y (xarray.DataArray) – The input DataArray of the y-component (in terms of data projection) of the vector field.

  • index (str or int, optional) – Denotes the index coordinate of the cross-section, defaults to ‘index’ as set by metpy.interpolate.cross_section

Returns:

component_tangential, component_normal (tuple of xarray.DataArray) – Components of the vector field in the tangential and normal directions, respectively

Notes

The coordinates of data_x and data_y must match.

Examples using metpy.calc.cross_section_components#

Cross Section Analysis

Cross Section Analysis