csep.core.forecasts.GriddedForecast.get_magnitude_index
- GriddedForecast.get_magnitude_index(mags, tol=1e-05)
Returns the indices into the magnitude bins of selected magnitudes
Note: the right-most bin is treated as extending to infinity.
- Parameters:
mags (array-like) – list of magnitudes
- Returns:
indices corresponding to mags
- Return type:
idm (array-like)
- Raises: