pynga : a python package for the next generation attenuation relations

13
Southern California Earthquake Center pynga: A python package for the Next Generation Attenuation relations Feng Wang Oct. 12 th , 2012 1

Upload: leland

Post on 16-Feb-2016

54 views

Category:

Documents


0 download

DESCRIPTION

pynga : A python package for the Next Generation Attenuation relations. Feng Wang Oct. 12 th , 2012. Package components. Python Classes. Returning: Median Inter-event standard deviation Intra-event standard deviation total standard deviation Features: - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

pynga: A python package for the Next Generation Attenuation

relations

Feng WangOct. 12th, 2012

1

Page 2: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

2

utils.py

__init__.py

Validation & Application

pynga/

AS08.py

BA08.py

CB08.py

CY08.py

SC08.py

Python Classes

Python Package

Returning: Median Inter-event standard deviation Intra-event standard deviation total standard deviation

Features:

• Easy to install and less dependence on other packages

• Capable to input updated coefficients and keep using the same model functionals

• Capable of adding new NGA models

• Build-in utilities to compute unknown parameters, such as Rjb, Rrup, and Rx based on fault geometry

• Output results can be easily saved as Mat-style for further usages

Python utilities

Download: The package is version-controlled at GitHub, so you can clone the package using "git clone" git clone [email protected]:fengw/pynga.git

Package components

Page 3: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

3

Validation of NGA modelsCompare median and total standard deviation with those calculated using OpenSHA

Scatter i,T( )=ypynga i,T( )−yOpenSHA i,T( )

RMS T( )=1N

ypynga i,T( )−yOpenSHA i,T( )yOpenSHA i,T( )

⎡⎣⎢⎢

⎤⎦⎥⎥i

N

Results are presented inhttps://github.com/fengw/pynga/tree/master/Validation/plots/ValidationNGAs

RMS is within 0.02% for PGA, PGV, and SA at various periodsDifferences in scatter are due to the float points in the results, and pynga has longer float points.

Page 4: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

4

Distance calculationsUCERF-type fault geometry Basic inputs:

1.Surface projection of top rupture edges

(single and/or multiple fault traces, long/lat)

2.Average upper seismogenic depth (km)

3.Average lower seismogenic depth (km)

4.Average dip angle (degree)

utils.py provides functions to generate fault surface and discretize the surface by specifying down-dip and along-strike grid spaces, and then to compute distance parameters (Rjb, Rrup, Rx) given site location.

Page 5: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

5

BBP-type fault geometry

For more complicated source descriptions (in *.srf, discretized points are explicitly presented on the fault plane, just like rupture variations used in CyberShake which are similar to *.srf)utils.py provides functions to generate fault surface (different choices) and discretize the surface by specifying down-dip and along-strike grid spaces, and then to compute distance parameters (Rjb, Rrup, Rx) given site location.

A simple source description shown in *.src file

Page 6: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

6

ExamplesBBP-type fault geometryA simple sourcefrom Flingstudy

Page 7: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

7

Examples

Page 8: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

8

Examples

Page 9: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

9

Examples

Page 10: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

10

ExamplesSRF-type fault geometry

Site locations (black square) and fault surface trace (blue line)

Page 11: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

11

Calcluated by OpenSHA

ExamplesSRF-type fault geometry

Elysian Park (Upper)

ROpenSHA

Page 12: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

12

SRF-type fault geometry

Calcluated by utils.py in pynga

Examples

Rpynga

Page 13: pynga : A python package for the Next Generation Attenuation relations

Southern California

Earthquake Center

13

Rpynga −ROpenSHA