GMPEhaz is an R package that wraps the Ground Motion Prediction Equation (GMPE) routines from Norman Abrahamson's HAZ Fortran code. It provides R interfaces to a large collection of crustal and subduction GMPE models and utilities for working with them.
- Implements more than twenty published GMPE models including LL08, ASK14, CY14 and many others.
- Data sets
periods.TandGMPEhaz.modeldescribing available periods for each model.
install.packages("devtools")
devtools::install_github("personlin/GMPEhaz")library(GMPEhaz)
# Compute PGA on rock for a M6 interface event at 20 km
res <- LL08Rock(6, 20, 10, 0, 0)
pga <- exp(res$lnY) / exp(6.89)
print(pga)Additional documentation, including a vignette, is available in the vignettes/ folder of this repository. The package manual pages provide details for each GMPE implementation.
GMPEhaz is distributed under the terms of the GPL-3 license.