Catalog#

Catalog#

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

Constructor#

Catalog

A catalog of seismic events represented in tabular form, where each row corresponds to a single earthquake.

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_b_stability

Estimates the completeness magnitude (mc) using b-value stability.

Catalog.estimate_mc_maxc

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

Estimate from Catalog#

Catalog.plot_in_space

This function plots seismicity on a surface.

Catalog.plot_mags_in_time

Creates a scatter plot, each dot is an event.

Catalog.plot_cum_count

Plots cumulative count of earthquakes in given catalog above given Mc through time.

Catalog.plot_fmd

Plots frequency magnitude distribution.

Catalog.plot_cum_fmd

Plots cumulative frequency magnitude distribution, optionally with a corresponding theoretical Gutenberg-Richter (GR) distribution.

Catalog.plot_mc_vs_b

Plots the estimated b-value in dependence of the completeness magnitude.

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 from and to other format#

Catalog.to_quakeml

Convert the catalog to QuakeML format.

Catalog.from_quakeml

Create a Catalog from a QuakeML file.

Catalog.from_openquake

Create a (seismostats) Catalog from an openquake Catalogue.

Catalog.to_openquake

Converts the Catalog to an openquake Catalogue The optional dependency group openquake is required for this method.