xoa.core.dyn.kinematics#
- xoa.core.dyn.kinematics(u, v, dx, dy, z=None)[source]#
Divergence, strain and relative vorticity, computed in a single pass
- Parameters:
u (array_like(..., ny, nx), array_like(..., nz, ny, nx)) – Velocity components in m s-1
v (array_like(..., ny, nx), array_like(..., nz, ny, nx)) – Velocity components in m s-1
dx (float, array_like(ny, nx)) – Resolutions along X and Y in meters
dy (float, array_like(ny, nx)) – Resolutions along X and Y in meters
z (None, array_like(..., nz, ny, nx)) – Vertical coordinate of the levels, that varies in space, like with sigma coordinates, and whose sign convention does not matter. The velocities are then 3D, and the horizontal derivatives are computed at constant z instead of along the levels, with \(\partial_x u|_z = \partial_x u|_s - \partial_x z|_s \partial_z u\). They are different where the levels are sloping and the currents are sheared. The vertical derivatives are one-sided at the first and last levels.
- Returns:
array(…, ny, nx) – Horizontal divergence in s-1
array(…, ny, nx) – Normal strain in s-1
array(…, ny, nx) – Shear strain in s-1
array(…, ny, nx) – Relative vorticity in s-1