mttime.core.inversion.Inversion

class Inversion(config=None)[source]

Bases: object

A container for a single inverse routine

Object contains the inversion parameters, data and synthetic files, and moment tensor solutions.

Parameters

config (Configure) – object containing the necessary parameters for setting up the inverse routine

Variables
  • streams (a list of Stream) – processed waveform data.

  • moment_tensors (a list of Tensor) – moment tensor solutions.

  • preferred_tensor_id (int) – index to the preferred moment tensor solution (maximum variance reduction).

Methods

get_preferred_tensor

Returns the preferred moment tensor solution

invert

Launch the inversion

plot

Plot inversion results

write

Write inversion results to file