From a2802b7bbdc87de7da790aeb82f87f42f06561a7 Mon Sep 17 00:00:00 2001 From: miili Date: Mon, 9 Dec 2024 11:02:59 +0100 Subject: [PATCH] local magnitude: adding central california model --- src/qseek/magnitudes/local_magnitude_model.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/qseek/magnitudes/local_magnitude_model.py b/src/qseek/magnitudes/local_magnitude_model.py index 83fe5cef..292eb4ec 100644 --- a/src/qseek/magnitudes/local_magnitude_model.py +++ b/src/qseek/magnitudes/local_magnitude_model.py @@ -258,6 +258,17 @@ def get_amp_attenuation(dist_hypo_km: float, dist_epi_km: float) -> float: return 1.11 * np.log10(dist_hypo_km / 100) + 0.00189 * (dist_hypo_km - 100) + 3 +class CentralCalifornia(WoodAnderson, LocalMagnitudeModel): + author = "Bakun and Joyner (1984)" + + epicentral_range = Range(0.0 * KM, 400.0 * KM) + component = "north-east-separate" + + @staticmethod + def get_amp_attenuation(dist_hypo_km: float, dist_epi_km: float) -> float: + return np.log10(dist_epi_km / 100) + 0.00301 * (dist_epi_km - 100) + 3.0 + + class IaspeiSouthernCalifornia(WoodAnderson, LocalMagnitudeModel): author = "Hutton and Boore (1987)"