csep.core.regions.CartesianGrid2D.get_index_of

CartesianGrid2D.get_index_of(lons, lats)[source]

Returns the index of lons, lats in self.polygons

Parameters:
  • lons – ndarray-like

  • lats – ndarray-like

Returns:

ndarray-like

Return type:

idx