csep.core.forecasts.GriddedForecast.get_rates

GriddedForecast.get_rates(lons, lats, mags, data=None, ret_inds=False)[source]

Returns the rate associated with a longitude, latitude, and magnitude.

Parameters
  • lon – longitude of interest

  • lat – latitude of interest

  • mag – magnitude of interest

  • data – optional, if not none then use this data value provided with the forecast

Returns

rates (float or ndarray)

Raises

RuntimeError – lons lats and mags must be the same length