shoot.eddies.eddies3d.Associate

shoot.eddies.eddies3d.Associate#

class shoot.eddies.eddies3d.Associate(parent_eddies, new_eddies, max_distance=10)[source]#

Associate eddies between vertical levels based on spatial proximity

Uses the Hungarian algorithm (linear sum assignment) to match eddies between a parent level and a new level based on distance and eddy type.

Parameters:
  • parent_eddies (list) – Reference eddies from the parent vertical level.

  • new_eddies (list) – Eddies from the new vertical level to associate.

  • max_distance (float, default 10) – Maximum distance (km) for eddy centers to be associated.

cost#

Cost matrix for eddy association (cached property).

Type:

ndarray

__init__(parent_eddies, new_eddies, max_distance=10)[source]#

Initialize eddy association

Parameters:
  • parent_eddies (list) – Reference eddies from the parent vertical level.

  • new_eddies (list) – Eddies from the new vertical level to associate.

  • max_distance (float, default 10) – Maximum distance (km) for eddy centers to be associated.

Methods

order()

search_dist(eddyj, eddyi)

Attributes

cost

Cost function between each eddy pair