csep.core.catalogs.CSEPCatalog.spatial_magnitude_counts

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

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.

Parameters

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

Returns

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

Return type

output