Catalog#

Catalog#

Simple representation of an earthquake catalog, storing each single event as a row.

Constructor#

Catalog

A subclass of pandas DataFrame that represents a catalog of earthquakes.

Catalog.from_quakeml

Create a Catalog from a QuakeML file.

Catalog.from_dict

Create a Catalog from a list of dictionaries.

Estimate from Catalog#

Catalog.estimate_b

Estimates b-value of the Gutenberg-Richter (GR) law, using the magnitudes in the Catalog.

Catalog.estimate_a

Estimates a-value of the Gutenberg-Richter (GR) law, using the magnitudes in the Catalog.

Catalog.estimate_mc_ks

Returns the smallest magnitude in a given list of completeness magnitudes for which the KS test is passed, i.e., where the null hypothesis that the sample of magnitudes is drawn from a Gutenberg-Richter law cannot be rejected.

Catalog.estimate_mc_maxc

Returns the completeness magnitude (mc) estimate using the maximum curvature method.

Modify Catalog#

Catalog.bin_magnitudes

Rounds values in the magnitude column of the catalog to a given precision delta_m.

Catalog.strip

Remove all columns except the required ones defined in _required_cols.

Catalog.drop_ids

Drop event, origin, and magnitude IDs from the catalog.

Catalog.drop_uncertainties

Drop uncertainty columns from the catalog.

Convert to other format#

Catalog.to_quakeml

Convert the catalog to QuakeML format.