obspy.imaging.beachball.MomentTensor

class MomentTensor(*args)[source]

Bases: future.types.newobject.newobject

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__ unicode(object=’‘) -> unicode object
__module__ str(object=’‘) -> string
__weakref__ list of weak references to the object (if defined)
xx
xy
xz
yy
yz
zz

Public Methods

next

Special Methods

__format__ default object formatter
__init__
__long__
__native__ Hook for the future.utils.native() function
__new__
__nonzero__
__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().
__unicode__