csep.core.forecasts.GriddedForecast.get_index_of

GriddedForecast.get_index_of(lons, lats)

Returns the index of lons, lats in spatial region

See csep.utils.spatial.CartesianGrid2D for more details.

Parameters:
  • lons – ndarray-like

  • lats – ndarray-like

Returns:

ndarray-like

Return type:

idx

Raises:

ValueError – if lons or lats are outside of the region.