How hvasbath/beat works
BEAT is a Bayesian earthquake-analysis application for inferring earthquake source properties from seismic and geodetic observations. A typical user configures a project and supplies observations, then runs an inversion and inspects plots of the results. The runtime includes separate seismic and geodetic likelihood/modeling components, source-geometry and Green’s-function machinery, and several sampling strategies. The tree and excerpts establish these capabilities, but do not expose all CLI-to-model wiring; the graph omits uncertain links rather than implying a complete execution trace.
Main entry points: geodetic.py Geodetic model · problems.py Problem definitions · seismic.py Seismic model · config.py Project configuration
Components 23
Project workflow
- BEAT commands
beat/apps/beat.py - BEATdown
beat/apps/beatdown.py - Project configuration
beat/config.py - Data handling
beat/inputf.py - Result plots
beat/plotting
Observation models
- Seismic model
beat/models/seismic.py - Geodetic model
beat/models/geodetic.py - Polarity model
beat/models/polarity.py - Problem definitions
beat/models/problems.py - Covariance
beat/covariance.py
Source physics
- Synthetics and mappings
beat/heart.py - Earthquake sources
beat/sources.py - Finite-fault geometry
beat/ffi/fault.py - BEM sources
beat/bem/sources.py - Rupture timing
beat/fast_sweeping/fast_sweep.py - Voronoi mapping
beat/voronoi/voronoi.py
Bayesian inference
- Sampling strategies
beat/sampler - Metropolis sampler
beat/sampler/metropolis.py - SMC sampler
beat/sampler/smc.py - Parallel tempering
beat/sampler/pt.py - Trace backend
beat/backend.py
Other components
- Researcher
- Pyrocko GF engine
Connections 28
- Researcher → BEAT commands: runs commands
- Researcher → BEATdown: runs commands
- BEAT commands → Project configuration: manages projects
- BEAT commands → Result plots: requests plots
- Data handling → Seismic model: provides observations
- Data handling → Geodetic model: provides observations
- Project configuration → Seismic model: configures
- Project configuration → Geodetic model: configures
- Project configuration → Problem definitions: configures
- Problem definitions → Seismic model: includes model
- Problem definitions → Geodetic model: includes model
- Problem definitions → Polarity model: includes model
- Seismic model → Covariance: uses covariance
- Geodetic model → Covariance: uses covariance
- Seismic model → Synthetics and mappings: prepares synthetics
- Geodetic model → Synthetics and mappings: prepares synthetics
- Synthetics and mappings → Pyrocko GF engine: queries Green’s functions
- Geodetic model → BEM sources: uses BEM engine
- Finite-fault geometry → Rupture timing: calculates rupture times
- Finite-fault geometry → Voronoi mapping: maps discretization
- Problem definitions → Sampling strategies: provides inference problem
- Sampling strategies → Metropolis sampler: selects strategy
- Sampling strategies → SMC sampler: selects strategy
- Sampling strategies → Parallel tempering: selects strategy
- Metropolis sampler → Trace backend: records samples
- SMC sampler → Trace backend: records samples
- Parallel tempering → Trace backend: records chains
- Result plots → Trace backend: reads results