normal_component¶
-
metpy.calc.
normal_component
(data_x, data_y, index='index')[source]¶ Obtain the normal component 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.
Returns: component_normal (
xarray.DataArray
) – The component of the vector field in the normal directions.Notes
The coordinates of data_x and data_y must match.
- data_x (