Note
Go to the end to download the full example code.
Comparing Moment Tensor Matrices#
In this example, we will perform a quick and dirty amplitude-based inversion for the moment tensor.
As this is a plotting example, we will tackle the problem as an inverse-crime. For a more scientific example of how to perform amplitude-based moment-tensor inversion, look into the tutorial [XXX] which uses data generated via finite- difference modelling.
import matplotlib.pyplot as plt
import numpy as np
from fracspy.visualisation.momenttensor_plots import MTMatrix_comparisonplot
plt.close("all")
np.random.seed(0)
Let’s begin by creating a certain MT - we consider this the True MT
MT for forward modelling: [0, 0, 0, -1, 0, 0]
Let’s make a second MT which is a noisy version of our True MT - we can consider this the Estimated MT
mt_noise = 0.75 * (np.random.random(6)-0.5)
mt_est = mt + mt_noise
Now we are ready to plot the comparison between our known MT (mt) and our estimate MT (mt_est)
Total running time of the script: (0 minutes 0.085 seconds)