shoot.eddies.eddies2d.GriddedEddy2D#
- class shoot.eddies.eddies2d.GriddedEddy2D(i, j, u, v, ssh=None, dx=None, dy=None, uv_error=0.01, max_ellipse_error=0.01, nlevels=100, robust=0.03, **attrs)[source]#
An eddy detected on a grid with contour and ellipse properties
Represents a single eddy candidate at a grid point. Given a local velocity field, it computes SSH contours, fits ellipses, and determines eddy boundaries and maximum velocity contours.
- Parameters:
i (int) – Grid index along X for the eddy center.
j (int) – Grid index along Y for the eddy center.
u (xarray.DataArray) – Local zonal velocity field.
v (xarray.DataArray) – Local meridional velocity field.
ssh (xarray.DataArray, optional) – Local SSH field. If None, computed from streamfunction.
dx (xarray.DataArray, optional) – Grid resolution along X in meters.
dy (xarray.DataArray, optional) – Grid resolution along Y in meters.
max_ellipse_error (float, default 0.01) – Maximum allowed ellipse fit error.
min_radius (float, optional) – Minimum eddy radius in km.
- __init__(i, j, u, v, ssh=None, dx=None, dy=None, uv_error=0.01, max_ellipse_error=0.01, nlevels=100, robust=0.03, **attrs)[source]#
Methods
contains_eddy(eddy)contains_points(lons, lats)intersects_eddy(eddy)is_eddy(min_radius)lignes(nb_eddy, date)provide the expected lignes for plan vecteur format
plot([ax, lw, color, vmax, boundary])Quickly plot the eddy
plot_previ([ax, lw, color])Quickly plot the eddy
Attributes
Latitude of
ellipseor NoneEllipse fitted from
boundary_contouror NoneLongitude of
ellipseor NoneLatitude of center either from grid or
ellipseLength deduced from
ellipseor 0Longitude of center either from grid or
ellipseRadius deduced from
ellipseor 0Rossby number of the eddy
Sea surface height field
Geostrophic zonal velocity
Geostrophic meridional velocity