csep.core.catalogs.CSEPCatalog.spatial_counts

CSEPCatalog.spatial_counts()

Returns counts of events within discrete spatial 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.

Returns:

ndarray containing the event count in each spatial bin