oceanspy.compute.horizontal_divergence_velocity

oceanspy.compute.horizontal_divergence_velocity(od)[source]

Compute horizontal divergence of the velocity field.

\[\nabla_{H} \cdot {\bf u} = \frac{\partial u}{\partial x} +\frac{\partial v}{\partial y}\]
Parameters:
od: OceanDataset

oceandataset used to compute.

Returns:
ds: xarray.Dataset
hor_div_vel: horizontal divergence of the velocity field

See also

divergence

References

Numerical Method: https://mitgcm.readthedocs.io/en/latest/algorithm/algorithm.html#horizontal-divergence