shakelib.correlation.loth_baker_2013

class shakelib.correlation.loth_baker_2013.LothBaker2013(periods)[source]

Bases: object

Created by Christophe Loth, 12/18/2012 Pythonized and vectorized by C. Bruce Worden, 3/15/2017 Compute the spatial correlation of epsilons for the NGA ground motion models

The function is strictly empirical, fitted over the range the range 0.01s <= t1, t2 <= 10s

Documentation is provided in the following document: Loth, C., and Baker, J. W. (2013). “A spatial cross-correlation model of ground motion spectral accelerations at multiple periods.” Earthquake Engineering & Structural Dynamics, 42, 397-417.

Create an instance of LB13.

Parameters:periods (numpy.array) – An array of periods that will be requested from the function. Values must be [0.01 -> 10.0], and must me sorted from smallest to largest.
Returns:An instance of LothBaker2013.
getCorrelation(ix1, ix2, h)[source]

Compute the correlation between two periods and a separation distance of h.

The indices (ix1 and ix2) and h must have the same dimensions. The indices may be equal, and there is no restriction on which one is larger. The indices refer to periods in the ‘period’ argument to the class constructor.

Parameters:
  • ix1 (ndarray) – The indices of the first period of interest.
  • ix2 (ndarrays) – The indices of the second period of interest.
  • h (ndarray) – The separation distance between two sites (units of km).
Returns:

The predicted correlation coefficient. The output array will have the same shape as the inputs.

Return type:

ndarray