shoot.hydrology.compute_anomalies#
- shoot.hydrology.compute_anomalies(eddies, dens, nz=100, r_factor=1.2, eddy_type=True)[source]#
Add anomaly to detected eddies
- Parameters:
eddies (Eddies2D) – Collection of detected eddies.
dens (xarray.DataArray) – 3D tracer field (density, temperature, etc.).
nz (int, default 100) – Number of vertical interpolation levels.
r_factor (float, default 1.2) – Radius factor for background profile selection.
Notes
Modifies eddies in-place by adding .anomaly attribute to each eddy.
Example
>>> from shoot.hydrology import compute_anomalies >>> compute_anomalies(eddies, ds.density) >>> eddies.eddies[0].anomaly.core_depth