py_eddy_tracker.observations.observation.grid_stat

py_eddy_tracker.observations.observation.grid_stat(x_c, y_c, grid, mask, x, y, result, circular=False, method='mean')[source]

Compute the mean or the max of the grid for each contour

Parameters:
  • x_c (array_like) – the grid longitude coordinates

  • y_c (array_like) – the grid latitude coordinates

  • grid (array_like) – grid value

  • mask (array[bool]) – mask for invalid value

  • x (array_like) – longitude of contours

  • y (array_like) – latitude of contours

  • result (array_like) – return values

  • circular (bool) – True if grid is wrappable

  • method (str) – ‘mean’, ‘max’