Skip to content
Permalink
Browse files

update logo

  • Loading branch information...
klunk386 committed Aug 29, 2019
1 parent bef4ac7 commit c48935e25f10f8ae1139f931d1a05cec4777916c
Showing with 10 additions and 0 deletions.
  1. BIN logo/shakelab.png
  2. +10 −0 shakelab/modeling/source.py
BIN -12.2 KB (79%) logo/shakelab.png
Binary file not shown.
@@ -22,6 +22,10 @@

import numpy as _np

AVERAGE_RADIATION = 0.55
SURFACE_AMPLIFICATION = 2.
HORIZONTAL_PARTITION = 0.7071

def source_spectrum(m0, omega, omega_corner, order=2., rho=2800.,
beta=3200., gamma=2, n=1):
"""
@@ -57,6 +61,12 @@ def source_spectrum(m0, omega, omega_corner, order=2., rho=2800.,
return spectrum


def corner_frequency(m0, stress_drop, beta):
"""
"""
return 0.4906*beta*(stress_drop/m0)**(1./3.)


def magnitude_to_moment(mw):
"""
Hanks & Kanamori equation

0 comments on commit c48935e

Please sign in to comment.
You can’t perform that action at this time.