Skip to content

personlin/GMPEhaz

Repository files navigation

R-CMD-check Codecov test coverage Join the chat at https://gitter.im/GMPEhaz/Lobby

GMPEhaz

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.

Features

  • Implements more than twenty published GMPE models including LL08, ASK14, CY14 and many others.
  • Data sets periods.T and GMPEhaz.model describing available periods for each model.

Installation

install.packages("devtools")
devtools::install_github("personlin/GMPEhaz")

Example

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)

Documentation

Additional documentation, including a vignette, is available in the vignettes/ folder of this repository. The package manual pages provide details for each GMPE implementation.

License

GMPEhaz is distributed under the terms of the GPL-3 license.