Focusing on Focal Mechanisms with Python

A comprehensive tutorial for plotting focal mechanism “beach-balls” using the PyGMT package for Python. The walk-through covers downloading focal mechanism data from the SCEDC, conditioning the data, creating a postscript legend, and plotting everything on a map. Highlights include:
– Offsetting “beach-balls” from their point of origin
– Scaling “beach-balls” by magnitude
– Coloring “beach-balls” by depth
– Plotting label text above each “beach-ball”
– Controlling the size of the label text
– Automatically downloading an SRTM DEM
– Creating a postscript legend file


First Try Hacker Noon profile picture

@boaFirst Try

Learning new things and sharing them


Join Hacker Noon

Create your free account to unlock your custom reading experience.


Cryptovixens Source



Your email address will not be published. Required fields are marked *

Get 20% Discount

Sign up to receive updates, promotions, and sneak peaks of upcoming products. Plus 20% off your next order.

Promotion nulla vitae elit libero a pharetra augue

Nullam quis risus eget urna mollis ornare vel eu leo. Aenean lacinia bibendum nulla sed