obspy.imaging.beachball.mt2axes

mt2axes(mt)[source]

Calculates the principal axes of a given moment tensor.

Parameters:

mtMomentTensor

Returns:

tuple of PrincipalAxis T, N and P

Adapted from ps_tensor / utilmeca.c / Generic Mapping Tools (GMT).