Overview¶
Pyrocko is an open source seismology toolbox and library, written in Python with performance-critical parts in C. From single traces to massive archives, it 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.
What’s inside¶
Ready-to-use tools for everyday seismological practice: Squirrel for dataset inspection and management, Snuffler for browsing and processing seismograms, Sparrow for geospatial visualization, Cake for travel times and ray paths, Fomosto for Green’s function databases and Colosseo for earthquake scenarios.
A framework for your own developments: waveform and metadata handling, data download from FDSN services, moment tensors, synthetic seismograms, plotting and more. The examples are the best place to start; the reference documents every module.
Background on the main building blocks: Squirrel data access, mantras (processing pipelines), Pyrocko-GF and the pseudo-dynamic rupture model.
Descriptions of Pyrocko’s own file formats for events, stations, markers and Green’s function stores.
Getting started¶
Look at some data, e.g. with Snuffler, or build a dataset with the Squirrel tutorial.
Try a few library examples, for instance trace handling or forward modelling.
Getting help¶
Questions and discussion: chat with us and other Pyrocko users in the Pyrocko Hive. Bug reports and feature requests: Pyrocko issues.
Citing 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
History¶
Between 2007 and 2009, I was working on kinematic source inversion for my PhD
at the University of Hamburg. I had written a Fortran package, the Kiwi Tools,
for Green’s function handling and inversion, but then realized that I needed
something more flexible for the preprocessing of the observed seismograms.
Using a wild mix of shell and Perl scripts together with specialized
seismology programs for signal processing was common practice in those days.
It felt very complicated and error-prone to me. To simplify things, I wrote a
Python wrapper for libmseed and started to use NumPy for the processing. I
called my new module pymseed. That worked quite well. But then another problem
blocked my progress: the program I used to visualize seismograms for quality
control constantly crashed on my machine. I had a little experience with Qt,
so I thought that PyQt together with my small new Python modules might be a
nice fit for a better seismogram viewer. This worked even better than I had
hoped and resulted in a script called snuffler.py, which I then used to
search for the truffles in my data. Finally, in 2010, I started to reorganize
the modules that had accumulated into a unified package: Pyrocko. The name was
only intended as a temporary placeholder until I found a better one. But
somehow, it stuck.
Over the years, many, many people have helped to extend this wonderful software toolbox, with contributions, suggestions, discussions, testing, bug reports, support and funding. Special thanks go to Alea Joachim, Alexandra Tsiakalou, Andreas Steinberg, Angela Carrillo Ponce, Anne Mutzek, Barbara Golebiowski, Carina Juretzek, Christof Lendl, Daniel Vollmer, Daniela Kühn, Dmitry Sidorov-Biryukov, Eugenia Locchi, Eva Eibl, Francesco Grigoli, Gesa Petersen, Hannes Vasyura-Bathke, Harun Yaşaroğlu, Henning Lilienkamp, Henriette Sudhaus, Joachim Bülow, Johanna Lehr, Karl-Heinz Jäckel, Konstantin Weidauer, Kristina Meier, Lars Krieger, Lucas Wilhelm, Lukas Schattenhofer, Malte Metz, Manuela Kaspar, Marin Govorčin, Marius Isken, Marius Kriegerowski, Matthias Ohrnberger, Matthias Schneider, Maximilian Dwars, Nele Vesely, Nima Nooshiri, Olga Zakharova, Richard McGraw, Simon Daout, Simone Cesca, Stefan Trabs, Thomas Braun, Thoralf Dietrich, Timothy Willey, Tobias Megies, Torsten Dahm, Trond Ryberg, Wasja Bloch.
May it be useful!
Sebastian Heimann