xoa.dyn.get_geos#
- xoa.dyn.get_geos(ssh, dx=None, dy=None)[source]#
Compute the geostrophic currents from the sea surface height, in m s-1
They balance the Coriolis force with the pressure gradient:
\[u_g = -\frac{g}{f} \partial_y \eta, \quad v_g = \frac{g}{f} \partial_x \eta\]where \(\eta\) is the sea surface height and \(f\) the Coriolis parameter, see
get_coriolis().- Parameters:
ssh (xarray.DataArray) – Sea surface height in meters
dx (None, float, xarray.DataArray) – Resolutions along X and Y in meters, which default to the ones computed from the coordinates with
xoa.grid.get_dx_dy().dy (None, float, xarray.DataArray) – Resolutions along X and Y in meters, which default to the ones computed from the coordinates with
xoa.grid.get_dx_dy().
- Returns:
xarray.DataArray – Zonal geostrophic current
xarray.DataArray – Meridional geostrophic current
See also