mttime.core.tensor.get_m_in_basis

get_m_in_basis(m, in_basis, out_basis)[source]

Convert moment tensor between coordinate systems

A function that returns the moment tensor in a new coordinate system. See supported coordinate systems below.

Parameters
  • m (ndarray or list) – moment tensor elements (M11, M22, M33, M12, M13, M23) for a given coordinate system (1, 2, 3).

  • in_basis (str) – input moment tensor coordinate system.

  • out_basis (str) – output moment tensor coordinate system.

Returns

moment tensor in a new coordinate system.

Return type

ndarray

Supported coordinate systems:

basis

vectors

reference

“NED”

north, east, down

Jost and Herrmann, 1989

“XYZ”

north, east, down

Aki and Richard, 1980

“USE”

up, south, east

Larson et al., 2010

“RTP”

r, theta, phi

Harvard/Global CMT convention