Skip to content

Commit

Permalink
Add WebnetWesternBohemia class to LocalMagnitudeModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Isken committed Dec 31, 2023
1 parent 47aede5 commit da4649f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/qseek/magnitudes/local_magnitude_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

KM = 1e3
MM = 1e3
UM = 1e6
M2NM = 1e9

Component = Literal["all", "horizontal-abs", "vertical", "north-east-separate"]
Expand Down Expand Up @@ -236,6 +237,29 @@ def get_station_magnitude(
)


class WebnetWesternBohemia(LocalMagnitudeModel):
author = "Horálek et al. (2000)"
doi = "10.1023/A:1022198406514"

hypocentral_range = Range(0.0 * KM, 100.0 * KM)
component = "horizontal-abs"
max_amplitude = "velocity"

def get_magnitude(
self,
amplitude: float,
distance_hypo: float,
distance_epi: float,
) -> float:
amplitude = amplitude * UM
return (
np.log10(amplitude)
- np.log10(2 * np.pi)
+ 2.1 * np.log10(distance_hypo / KM)
- 1.7
)


class WoodAnderson:
max_amplitude: ClassVar[MaxAmplitudeType] = "wood-anderson"

Expand Down

0 comments on commit da4649f

Please sign in to comment.