py_eddy_tracker.observations.network.Network

class py_eddy_tracker.observations.network.Network(input_regex, window=5, intern=False, memory=False)[source]

Bases: object

Class to group observations by network

Methods

build_dataset

from_eddiesobservations

get_group_array

With a loop on all pair of index, we will label each obs with a group number

group_observations

Store every interaction between identifications

group_translator

Create a translator with all duos

Attributes

window

filenames

nb_input

buffer

memory

NOGROUP

NOGROUP = 0
buffer
build_dataset(group, raw_data=True)[source]
filenames
classmethod from_eddiesobservations(observations, *args, **kwargs)[source]
get_group_array(results, nb_obs)[source]

With a loop on all pair of index, we will label each obs with a group number

group_observations(min_overlap=0.2, minimal_area=False, **kwargs)[source]

Store every interaction between identifications

Parameters:
  • minimal_area (bool) – If True, function will compute intersection/little polygon, else intersection/union, by default False

  • min_overlap (float) – minimum overlap area to associate observations, by default 0.2

Returns:

Return type:

TrackEddiesObservations

static group_translator(nb, duos)[source]

Create a translator with all duos

Parameters:
  • nb (int) – size of translator

  • duos (set((int, int))) – set of all groups that must be joined

Example:

>>> NetworkObservations.group_translator(5, ((0, 1), (0, 2), (1, 3)))
[3, 3, 3, 3, 5]
memory
nb_input
window