py_eddy_tracker.generic.window_index

py_eddy_tracker.generic.window_index(x, x0, half_window=1)[source]

Give for a fixed half_window each start and end index for each x0, in an unsorted array.

Parameters:
  • x (array) – array of value

  • x0 (array) – array of window center

  • half_window (float) – half window