shakelib.conversions.imt.abrahamson_bhasin_2020

class shakelib.conversions.imt.abrahamson_bhasin_2020.AbrahamsonBhasin2020(mag)[source]

Bases: object

Module to make conditional conversions from SA(T) to PGV. The user provides a magnitude when an instance and the instance can report back what period of SA is appropriate to use for computing PGV. The module is based upon:

Abrahamson, N.A., and Bhasin, S. (2020) Conditional ground-motion model for peak ground velocity for active crustal regions. PEER Report 2020/05, Pacific Earthquake Engineering Research Center, U.C. Berkeley.

getTref()[source]

Returns the period of the SA amps suitable for conversion to PGV. :param None.:

Returns:

The period of the SA amps to supply to getPGVandSTDDEVS()

Return type:

(float)

getPGVandSTDDEVS(psa, stddevs, sdtypes, rrup, vs30)[source]

Function to compute the PGVs and inflate the uncertainties based on the input SA amps and uncertainties.

Parameters:
  • psa (np.array) – An array os SA amp of the appropriate period.

  • stddevs (np.arrays) – A list of one or more array of standard deviations of the psa amps. The list may also contain arrays of the stddevs inflated by the point-source adjustments. Each array must be the same shape as the psa array.

  • sdtypes (list) – A list of the types of the standard deviations in stddevs (in order). These are OpenQuake const.StdDev types.

  • rrup (np.array) – Rupture distance to the points in psa. Must be the same shape as psa.

  • vs30 (np.array) – The Vs30 value at the points in psa. Must be the same shape as psa.

Returns:

ndarray, list): An array of PGV values, and a list of stddev arrays corresponding to the input stddev types, now with the uncertainty propagated through the conversion.

Return type:

(tuple

class shakelib.conversions.imt.abrahamson_bhasin_2020.AbrahamsonBhasin2020PGA(mag)[source]

Bases: shakelib.conversions.imt.abrahamson_bhasin_2020.AbrahamsonBhasin2020

An alternative to AbrahamsonBhasin2020 when only PGA is available for conversion.

class shakelib.conversions.imt.abrahamson_bhasin_2020.AbrahamsonBhasin2020SA1(mag)[source]

Bases: shakelib.conversions.imt.abrahamson_bhasin_2020.AbrahamsonBhasin2020

An alternative to AbrahamsonBhasin2020 when only SA(1.0) is available for conversion.