mttime.core.tensor.Tensor

class Tensor(m, basis='XYZ', **kwargs)[source]

Bases: object

Object containing a single six-element moment tensor

A container for all things related to the moment tensor m. Optional **kwargs are used to write and plot inversion results. Moment tensor elements will be stored in XYZ coordinates. Use get_tensor_elements to 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) – Deviatoric or Full.

  • component (list(str)) – waveform components.

  • station_table (DataFrame) – station table. Required header names are: station, distance, azimuth, ts, dt, weights, VR, [ZRTNE] (one column for each component in component), 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

decompose

Moment tensor decomposition

get_decomposition

Get the decomposition of a moment tensor

get_tensor_elements

Retrieve the moment tensor elements

write

Write detailed solution to file

Attributes

m

Moment tensor elements