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]
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.
Installs the latest release into a virtual environment in ~/.pyrocko/venv, for Linux and macOS (bash or zsh, Python 3.10 or newer). Afterwards, pvc activate makes it available in a terminal. The installer adds a line to ~/.bashrc and ~/.zshrc to provide the pvc command. Other methods are described in the installation guide.
$ conda install -c pyrocko pyrocko
conda install -c pyrocko pyrocko
Install into a dedicated conda environment. Other methods are described in the installation guide.
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.
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
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
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.
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:
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, ...)
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
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)
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
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.
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
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
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.