pyGMM: Ground Motion Models in PythonΒΆ

πŸš€ Quick Start

Get up and running with pyGMM in minutes. Install the package and run your first ground motion calculation.

Installation
πŸ“š User Guide

Learn how to use pyGMM effectively with comprehensive examples and tutorials.

Usage
πŸ”¬ Ground Motion Models

Explore the available ground motion prediction equations and their implementations.

Ground Motion Models
πŸ“– API Reference

Detailed documentation of all classes, functions, and modules in pyGMM.

API Reference

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)