csep.core.forecasts.GriddedForecast.get_magnitude_index

GriddedForecast.get_magnitude_index(mags)

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

ValueError