relmt.mt module#
Functions to set up and solve the linear systems
- relmt.mt.correlation(M1, M2)[source]#
P and S correlation coefficients between two moment tensors
Implements Equation 5 of Kuge and Kawakatsu (1993, PEPI)
- relmt.mt.kagan_angle(mt1, mt2)[source]#
Given two moment tensors, return the Kagan angle in degrees.
..note: Implementation curtesy of
pyrocko.moment_tensor.kagan_angle()After Kagan (1991) and Tape & Tape (2012).
- relmt.mt.magnitude_of_vector(vector)[source]#
Magnitude of a moment tensor in 6-element vector notation
- relmt.mt.moment_of_vector(m)[source]#
Seismic moment of tensor in 6-element vector notation
For arrays, sum moment along last dimension and return array of moments
- relmt.mt.mt_tuples(mt_vec, mt_constraint)[source]#
Return tuple representations of moment tensor vector.
- relmt.mt.ned2rtf(mnn, mee, mdd, mne, mnd, med)[source]#
Convert moment tensor in north-east-down coordinates to r (up), t (south), f (east)
- relmt.mt.norm_scalar_product(M1, M2)[source]#
Return the normalized scalar product of two moment tensors
See Michael (1987, JGR) Eq. 1 for motivation
- relmt.mt.p_radiation(M, azi, plu, dist, rho, alpha, only_first=False)[source]#
P radiation pattern of a moment tensor M
- Parameters:
M (
ndarray) –(3,3)moment tensor (Nm)azi (
float) – Source to receiver azimuth in degree E of Ninc – Source to receiver ray plunge in degreen down from horizontal
dist (
float) – Source to Receiver distance (m)rho (
float) – Density of the medium (kg m^-3)alpha (
float) – P-wave velocity of the medim (m/s)only_first (
bool) – If True, only return the first component of the displacement vectorplu (
float)
- Returns:
ndarray–(3,)(or(1,)when only_first=True) displacement vector at receiver
- relmt.mt.rtf2ned(mrr, mtt, mff, mrt, mrf, mtf)[source]#
Convert moment tensor in r (up), t (south), f (east) coordinates to north-east-down
- relmt.mt.s_radiation(M, azi, plu, dist, rho, beta)[source]#
S radiation pattern of a moment tensor M
- Parameters:
M (
ndarray) –(3, 3)moment tensor (Nm)azi (
float) – Source to receiver azimuth in degree E of Ninc – Source to receiver ray plunge in degreen down from horizontal
dist (
float) – Source to Receiver distance (m)rho (
float) – Density of the medium (kg m^-3)beta (
float) – S-wave velocity of the medim (m/s)plu (
float)
- Returns:
ndarray–(3,)displacement vector at receiver