absolute_vorticity

metpy.calc.absolute_vorticity(u, v, dx, dy, lats, dim_order='yx')[source]

Calculate the absolute vorticity of the horizontal wind.

Parameters:
  • u ((M, N) ndarray) – x component of the wind
  • v ((M, N) ndarray) – y component of the wind
  • dx (float) – The grid spacing in the x-direction
  • dy (float) – The grid spacing in the y-direction
  • lats ((M, N) ndarray) – latitudes of the wind data
Returns:

(M, N) ndarray – absolute vorticity