Examples¶
The Pyrocko framework covers many aspects of seismological data handling and management. This section offers tutorials and real-world examples on how to utilize the framework.
Jupyter Notebooks¶
Example notebooks are available in the Pyrocko Notebooks Repository - Contributions to the collection are highly welcome!
Scripts collection¶
Annotated scripts and real-world use cases using Pyrocko, grouped roughly by how deep into the framework they go.
Getting started¶
Data access and handling basics - start here if you are new to Pyrocko.
- Squirrel-powered data access
- Seismic traces
- Load, filter and save
- Visual inspection of traces
- Creating a trace object from scratch
- Extracting part of a trace (trimming)
- Time shifting a trace
- Resampling a trace
- Convert SAC to MiniSEED
- Convert MiniSEED to ASCII
- Finding the comparative misfits of multiple traces
- Restitute to displacement using poles and zeros
- Restitute to displacement using SEED RESP response
- Metadata read & write
- Downloading seismic data (FDSN)
- Earthquake catalog
- Snuffler markers
Core toolbox¶
Datasets, coordinates, plotting, and other tools used across most Pyrocko-based projects.
- Traveltime calculation and raytracing
- Accessing crustal velocity databases
- Moment tensor conversions
- GPS (GNSS) data handling
- Geographical datasets
- Plotting functions
- GmtPy - A Python interface to GMT 4/5
- Dataset management - Squirrel
- Geodesic functions
- ObsPy compatibility
- Working with the
gutspackage- What is Guts?
- Defining classes and composition
- Creating objects
- Validation
- Regularization
- Serialization
- Serialization of attributes with defaults
- Deserialization
- Inheritance
- Default value factories
- Computed properties
- Customized serialization
- Numerical data with
guts_array - Cloning objects
- Reactivity
- How Pyrocko makes use of Guts
Advanced functionality¶
Green’s function based forward modeling and source models for seismic and geodetic problems.
- Forward modeling synthetic seismograms and displacements
- Calculate synthetic seismograms from a local GF store
- Calculate synthetic seismograms using the Pseudo Dynamic Rupture
- Calculate Coulomb Failure Stress (CFS) changes using the Pseudo Dynamic Rupture
- Calculate spatial surface displacement from a local GF store
- Calculate spatial surface displacement using subfault dislocations
- Calculate spatial surface displacement using the Pseudo Dynamic Rupture
- Calculate spatial surface displacement and export Kite scenes
- Calculate forward model of thrust faulting and display wrapped phase
- Combining dislocation sources
- Modelling viscoelastic static displacement
- Creating a custom Source Time Function (STF)
- Kinematic/Dynamic source parameter modeling/inversion