CSEPCatalog.spatial_magnitude_counts(mag_bins=None, tol=1e-05, ret_skipped=False)

Return counts of events in space-magnitude region.

We figure out the index of the polygons and create a map that relates the spatial coordinate in the Cartesian grid with with the polygon in region.

  • mag_bins – magnitude bins (optional). tries to use magnitue bins associated with region

  • ret_skipped (bool) – if true, will return list of (lon, lat, mw) tuple of skipped points


unnormalized event count in each bin, 1d ndarray where index corresponds to midpoints

Return type