obspy.imaging.beachball.MomentTensor

class MomentTensor(*args)[source]

Bases: object

A moment tensor.

>>> a = MomentTensor(1, 1, 0, 0, 0, -1, 26)
>>> b = MomentTensor(np.array([1, 1, 0, 0, 0, -1]), 26)
>>> c = MomentTensor(np.array([[1, 0, 0], [0, 1, -1], [0, -1, 0]]), 26)
>>> a.mt
array([[ 1,  0,  0],
       [ 0,  1, -1],
       [ 0, -1,  0]])
>>> b.yz
-1
>>> a.expo
26

Attributes

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

xx

xy

xz

yy

yz

zz

Special Methods

__dir__

Default dir() implementation.

__format__

Default object formatter.

__init__

Initialize self.

__init_subclass__

This method is called when a class is subclassed.

__new__

Create and return a new object.

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__sizeof__

Size of object in memory, in bytes.

__subclasshook__

Abstract classes can override this to customize issubclass().