mttime.core.tensor.Tensor¶
-
class
Tensor(m, basis='XYZ', **kwargs)[source]¶ Bases:
objectObject containing a single six-element moment tensor
A container for all things related to the moment tensor
m. Optional**kwargsare used to write and plot inversion results. Moment tensor elements will be stored in XYZ coordinates. Useget_tensor_elementsto convert between coordinate systems.- Parameters
m (
ndarray) – six independent moment tensor elements (M11, M22, M33, M12, M13, M23) in dyne-cm.basis (str) – moment tensor coordinate system. Default is
"XYZ".depth (float) – source depth.
inversion_type (str) –
DeviatoricorFull.station_table (
DataFrame) – station table. Required header names are: station, distance, azimuth, ts, dt, weights, VR, [ZRTNE] (one column for each component incomponent), longitude, and latitude.total_VR (float) – total variance reduction.
dd (
ndarray) – observed data stored as a single vector, required for plotting.ss (
ndarray) – synthetic seismograms stored as a single vector, required for plotting.
Methods
Moment tensor decomposition
Get the decomposition of a moment tensor
Retrieve the moment tensor elements
Write detailed solution to file
Attributes
Moment tensor elements