-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStrasser2010_Intraslab_Ext.py
More file actions
40 lines (30 loc) · 1.25 KB
/
Strasser2010_Intraslab_Ext.py
File metadata and controls
40 lines (30 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from math import log10
from openquake.hazardlib.scalerel.strasser2010 import StrasserIntraslab
class Strasser2010_Intraslab_Ext(StrasserIntraslab):
"""
Strasser, F.O., M.C. Arango, and J.J. Bommer 2010. Scaling of the source dimensions of
interface and intraslab subduction-zone earthquakes with moment magnitude.
Seismological Research Letters, 81(6), pp 941-950.
Extends the base class with magnitude-length and length-magnitude scaling relationships,
plus magnitude-width and width-magnitude scaling relationships.
"""
def get_median_length(self, mag, rake=None):
"""
Calculates median fault length from magnitude.
"""
return pow(10.0, (0.562 * mag) - 2.350)
def get_median_mag_from_length(self, flen, rake=None):
"""
Calculates median magnitude from fault length.
"""
return 4.725 + (1.445 * log10(flen))
def get_median_width(self, mag, rake=None):
"""
Calculates median fault width from magnitude.
"""
return pow(10.0, (0.356 * mag) - 1.058)
def get_median_mag_from_width(self, fwid, rake=None):
"""
Calculates median magnitude from fault width.
"""
return 3.407 + (2.511 * log10(fwid))