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.

Quickstart
πŸ“š User Guide

How the scenario, the models and their outputs fit together.

User Guide
πŸ”¬ Ground Motion Models

The ground-motion models, and how to find them by what they predict.

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 published empirical models: ground-motion models, Fourier amplitude spectrum models, soil curves, velocity profiles and slope-displacement models. The models share an interface, so they can be compared and used as input to site response and random vibration theory calculations.

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

scenario = pygmm.Scenario(
    mag=6.5, dist_rup=20.0, dist_jb=20.0, dist_x=20.0, dip=90.0,
    mechanism="SS", v_s30=760.0,
)
model = pygmm.ChiouYoungs2014(scenario)
model.periods, model.spec_accels, model.ln_stds