6.2.8. mag_calc

Functions to aid magnitude estimation.

copyright:

EQcorrscan developers.

license:

GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

6.2.8.1. Classes & Functions

amp_pick_event

Pick amplitudes for local magnitude for a single event.

calc_b_value

Calculate the b-value for a range of completeness magnitudes.

calc_max_curv

Calculate the magnitude of completeness using the maximum curvature method.

dist_calc

Function to calculate the distance in km between two points.

svd_moments

Calculate relative moments/amplitudes using singular-value decomposition.

relative_amplitude

Compute the relative amplitudes between two streams.

relative_magnitude

Compute the relative magnitudes between two events.

6.2.8.2. Private Functions

Note that these functions are not designed for public use and may change at any point.

_sim_WA

Remove the instrument response from a trace and simulate a Wood-Anderson.

_pairwise

Wrapper on itertools for SVD_magnitude.

_max_p2t

Finds the maximum peak-to-trough amplitude and period.