obspy.imaging.beachball

Draws a beachball diagram of an earthquake focal mechanism

Most source code provided here are adopted from

  1. MatLab script bb.m written by Andy Michael, Chen Ji and Oliver Boyd.

  2. ps_meca program from the Generic Mapping Tools (GMT).

copyright

The ObsPy Development Team (devs@obspy.org)

license

GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

Public Functions

aux_plane

Get Strike and dip of second plane.

beach

Return a beach ball as a collection which can be connected to an current matplotlib axes instance (ax.add_collection).

beachball

Draws a beach ball diagram of an earthquake focal mechanism.

mt2axes

Calculates the principal axes of a given moment tensor.

mt2plane

Calculates a nodal plane of a given moment tensor.

plot_dc

Uses one nodal plane of a double couple to draw a beach ball plot.

plot_mt

Uses a principal axis T, N and P to draw a beach ball plot.

pol2cart

strike_dip

Finds strike and dip of plane given normal vector having components n, e, and u.

tdl

Helper function for mt2plane.

xy2patch

Classes

MomentTensor

A moment tensor.

NodalPlane

A nodal plane.

PrincipalAxis

A principal axis.