pyGMM: Ground Motion Models in PythonΒΆ
Get up and running with pyGMM in minutes. Install the package and run your first ground motion calculation.
Learn how to use pyGMM effectively with comprehensive examples and tutorials.
Explore the available ground motion prediction equations and their implementations.
Detailed documentation of all classes, functions, and modules in pyGMM.
What is pyGMM?
pyGMM is a Python library for evaluating ground motion prediction equations (GMPEs). It provides a unified interface to numerous published ground motion models, making it easy to compare predictions and perform probabilistic seismic hazard analysis.
FeaturesΒΆ
π― Unified Interface
Consistent API across all ground motion models for easy comparison and analysis.
π Multiple Models
Support for dozens of published ground motion prediction equations.
π§ Easy Integration
Simple installation and integration with existing Python workflows.
Getting StartedΒΆ
Install pyGMM using pip:
pip install pygmm
Quick example:
import pygmm
# Create a scenario
scenario = pygmm.Scenario(mag=6.5, dist_rup=20, v_s30=760)
# Initialize a ground motion model
gmpe = pygmm.CampbellBozorgnia2014()
# Calculate ground motion
mean, std = gmpe(scenario)
Development