py_eddy_tracker.observations.observation.grid_count_pixel_in

py_eddy_tracker.observations.observation.grid_count_pixel_in(grid, x, y, x_ref, x_bounds, y_bounds, xstep, ystep, N, is_circular, x_size, x_c, y_c)[source]

Count how many times a pixel is used.

Parameters:
  • grid (array) –

  • x (array) – x for all contour

  • y (array) – y for all contour

  • x_ref (array) – x reference for wrapping

  • x_bounds (array) – grid longitude

  • y_bounds (array) – grid latitude

  • xstep (float) – step between two longitude

  • ystep (float) – step between two latitude

  • N (int) – shift of index to enlarge window

  • is_circular (bool) – To know if grid is wrappable

  • x_size (int) – Number of longitude

  • x_c (array) – longitude coordinate of grid

  • y_c (array) – latitude coordinate of grid