csep.core.catalogs.CSEPCatalog.magnitude_counts
- CSEPCatalog.magnitude_counts(mag_bins=None, tol=None, retbins=False)
Computes the count of events within magnitude bins
- Parameters:
mag_bins (array-like) – magnitude bin edges, by default tries to use magnitude bin edges associated with region, otherwise
csep.utils.constants.CSEP_MW_BINS
tol (float) – overwrite numerical tolerance, by default determined automatically from the magnitudes’ dtype to account for the limited precision of floating-point values. Only necessary to specify if the magnitudes were subject to some floating-point operations after loading or generating them (increased roundoff error, see
csep.utils.calc.bin1d_vec()
).retbins (bool) – if true, return the used bins in a tuple together with the counts.
- Returns:
events counts in each magnitude bin
- Return type: