Pyrocko

Pyrocko

A seismology toolbox and framework

From single traces to massive archives, Pyrocko handles and visualizes seismic data efficiently. Pre-calculated Green's functions make forward modelling fast. Together they form a foundation for earthquake source analysis, monitoring and new research tools.

$ pip install pyrocko[gui]

Use pip inside a virtual environment. Drop [gui] if you do not need the graphical applications. Other methods are described in the installation guide.

Log in to git.pyrocko.org with your GitHub account to report issues and contribute. The community chat is open for self-registration.

Pyrocko framework

At its core, Pyrocko is a library and framework providing building blocks for researchers and students wishing to develop their own applications.

Seismic data

Read, write and convert waveform, station and event formats. Fast access to large local archives and FDSN web services.

Signal processing

Filtering, restitution, rotation, cross-correlation and spectral analysis on traces of any size.

Green's functions

Pre-computed Green's function stores for fast forward modelling of waveforms and static displacements.

Sources

Point and finite sources, moment tensors and rupture models as building blocks for inversion tools.

Geodesy

InSAR and GNSS data handling and joint modelling with seismic data.

Visualization

Seismogram browsing, maps, beachballs and 3D views of geophysical datasets.

Applications

Some applications are included in the Pyrocko package. Others are tightly integrated with Pyrocko for specialized tasks and live in their own repositories.

Part of Pyrocko

Squirrel

Seismic data access and management

Squirrel provides a unified interface to waveforms, station meta-data and event information from local file collections and remote data sources. Files are indexed on first use, so ad-hoc selections from huge datasets are assembled promptly. The squirrel command line tool is its front-end for dataset inspection, download and conversion.

  • Handles selections with millions of files
  • Indexing and caching of meta-data in an SQLite database
  • Just-in-time download of missing data from FDSN services
  • Up-to-date data coverage and channel code indices
  • Efficient event catalog synchronization

Part of Pyrocko

Snuffler

Seismogram browser and workbench

The Snuffler is an interactive and extensible seismogram browser, suited for small and very big datasets and archives. Plugins, called Snufflings, make it useful for a broad variety of seismological applications.

  • Event and phase picking (manual and automatic)
  • Spectral and FK analysis
  • Beamforming
  • Polarization analysis
  • Write your own Snufflings in a few lines of Python

Part of Pyrocko

Sparrow

Geospatial data visualization

The Sparrow provides a virtual globe to visualize earthquake hypocenters, earthquake source models, fault traces, topography and other geophysical datasets in 3D and over time. Its primary focus is on simplicity, allowing for interactive dataset exploration and export of short animations.

  • Earthquake catalogs, sources and faults in 3D
  • Topography and coastlines
  • InSAR scenes (with Kite)
  • Animations over time

Part of Pyrocko

Cake

1D travel-time and ray-path computations

Cake is a tasty tool to solve classical seismic ray theory problems for layered earth models (layer cake models). Computations are done for a spherical earth. For various seismic phases it calculates:

  • Arrival times
  • Ray paths
  • Reflection and transmission coefficients
  • Take-off and incidence angles

Part of Pyrocko

Fomosto

Calculate and manage Green's function databases

Calculating Green's functions for synthetic seismograms is expensive. Fomosto precalculates Green's function databases in advance, which can be reused as required and shared with other researchers, letting them focus on their application instead of spending days on their Green's function setup.

  • Dynamic and static Green's functions
  • Interfaces to established modelling codes (QSEIS, QSSP, PSGRN/PSCMP, ...)
  • Ready-made stores on Green's Mill

Standalone

Grond

Probabilistic source optimization

Grond is a bootstrap-based probabilistic battering ram to explore and efficiently converge in solution spaces of earthquake source parameter estimation problems. It supports joint inversion of seismic and geodetic datasets.

  • Inversion of point sources and finite rupture models
  • Parameter trade-off analysis
  • Integrated robust waveform data preprocessing
  • Highly flexible objective function design
  • Extensive HTML optimization reports

Standalone

BEAT

Bayesian Earthquake Analysis Tool

Flexible, Bayesian, multi-dataset deformation source optimization including model uncertainties. Probabilistic source inversion for point sources and extended sources up to distributed slip.

  • Convergence insurance through Sequential Monte Carlo
  • Model uncertainties (theory errors due to Earth structure)
  • Parallel sampling on available CPUs
  • Optional GPU sampling for linear problems

Standalone

Kite

InSAR displacement analysis and post-processing

Get your InSAR displacement maps handled the Pyrocko way and prepared for deformation source analysis. Interactive inspection of static displacement fields and data noise.

  • Quadtree data subsampling
  • Data error variance-covariance estimation for proper data weighting
  • Import of common InSAR processor formats

Part of Kite

Talpa

Interactive static displacement modelling

Fault ruptures and volcanic plumbing systems are complex processes in a heterogeneous crust. Talpa, the mole, links observed surface displacements with deformation sources interactively, as a first step and guide towards a full source optimization. It interfaces different displacement codes, one being pyrocko.gf.

Standalone

Qseek

Earthquake detection and localization

Qseek detects and locates earthquakes in large seismic datasets. It stacks machine-learning phase annotations along modelled travel times and focuses an adaptive octree on the seismic sources, in continuous archives and in real time.

  • Phase detection with SeisBench pickers (PhaseNet, EQTransformer, ...) or STA/LTA
  • Constant, 1D and 3D velocity models
  • Local and moment magnitudes, ground motions
  • Station corrections
  • Real-time monitoring of SeedLink streams

Standalone

Clusty

Waveform-based earthquake clustering

Clusty clusters earthquakes based on waveform similarity observed across a network of seismic stations. It combines cross-correlations from many stations into a network similarity and groups the events with DBSCAN, to image complex fault systems from aftershock sequences.

  • Parallel cross-correlation of P, S and surface waves
  • Network similarity from station-wise correlations
  • DBSCAN clustering with parameter analysis
  • Merging of results from several frequency bands
  • Aligned and stacked waveforms per cluster

Cite Pyrocko

If Pyrocko helps your research, please cite:

Heimann, S., Kriegerowski, M., Isken, M., Cesca, S., Daout, S., Grigoli, F., Juretzek, C., Megies, T., Nooshiri, N., Steinberg, A., Sudhaus, H., Vasyura-Bathke, H., Willey, T., Dahm, T. (2017). Pyrocko - An open-source seismology toolbox and library. V. 0.3. GFZ Data Services. doi:10.5880/GFZ.2.1.2017.001

Heimann, S., Vasyura-Bathke, H., Sudhaus, H., Isken, M. P., Kriegerowski, M., Steinberg, A., Dahm, T. (2019). A Python framework for efficient use of pre-computed Green's functions in seismological and other physical forward and inverse source problems. Solid Earth, 10(6), 1921-1935. doi:10.5194/se-10-1921-2019

BibTeX
@misc{heimann2017pyrocko,
  author    = {Heimann, Sebastian and Kriegerowski, Marius and
               Isken, Marius and Cesca, Simone and Daout, Simon and
               Grigoli, Francesco and Juretzek, Carina and
               Megies, Tobias and Nooshiri, Nima and Steinberg, Andreas and
               Sudhaus, Henriette and Vasyura-Bathke, Hannes and
               Willey, Timothy and Dahm, Torsten},
  title     = {Pyrocko - An open-source seismology toolbox and library},
  version   = {0.3},
  publisher = {GFZ Data Services},
  year      = {2017},
  doi       = {10.5880/GFZ.2.1.2017.001}
}

@article{heimann2019pyrocko,
  author  = {Heimann, Sebastian and Vasyura-Bathke, Hannes and
             Sudhaus, Henriette and Isken, Marius Paul and
             Kriegerowski, Marius and Steinberg, Andreas and Dahm, Torsten},
  title   = {A Python framework for efficient use of pre-computed
             Green's functions in seismological and other physical
             forward and inverse source problems},
  journal = {Solid Earth},
  volume  = {10},
  number  = {6},
  pages   = {1921--1935},
  year    = {2019},
  doi     = {10.5194/se-10-1921-2019}
}

Publications

  • Vasyura-Bathke, H., Dettmer, J., Steinberg, A., Heimann, S., Isken, M., Zielke, O., Mai, P. M., Sudhaus, H., Jónsson, S. (2020). The Bayesian Earthquake Analysis Tool. Seismological Research Letters. doi:10.1785/0220190075
  • Isken, M., Sudhaus, H., Heimann, S., Steinberg, A., Daout, S., Vasyura-Bathke, H. (2017). Kite - Software for Rapid Earthquake Source Optimisation from InSAR Surface Displacement. GFZ Data Services. doi:10.5880/GFZ.2.1.2017.002
  • Heimann, S., Kriegerowski, M., Dahm, T., Cesca, S., Wang, R. (2016). A Green's function database platform for seismological research and education: applications and examples. EGU General Assembly 2016, p. 15292.

Material