uxarray.UxDataArray.scalardotgradient#
- UxDataArray.scalardotgradient(v, q)#
Compute the dot product between a vector field and the gradient of a scalar field.
- Parameters:
v (UxDataArray) – The meridional component of the vector field.
selfis treated as the zonal component.q (UxDataArray) – Scalar field whose gradient is dotted with the vector field.
- Returns:
scalar_dot_gradient – Dot product
self * dq/dx + v * dq/dy.- Return type: