Source code for openquake.hazardlib.scalerel.leonard2014
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2012-2019 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenQuake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with OpenQuake. If not, see <http://www.gnu.org/licenses/>.
"""
Module :mod:`openquake.hazardlib.scalerel.leonard2014` implements
:class:`Leonard2014_SCR`
:class:`Leonard2014_Interplate`
"""
from numpy import power, log10
from openquake.hazardlib.scalerel.base import BaseMSRSigma, BaseASRSigma
[docs]class Leonard2014_SCR(BaseMSRSigma, BaseASRSigma):
"""
Leonard, M., 2014. Self-consistent earthquake fault-scaling relations:
Update and extension to stable continental strike-slip faults.
Bulletin of the Seismological Society of America, 104(6), pp 2953-2965.
Implements both magnitude-area and area-magnitude scaling relationships.
"""
[docs] def get_std_dev_area(self, mag, rake):
"""
Returns zero for now
"""
return 0.0
[docs] def get_std_dev_mag(self, area, rake):
"""
Returns zero for now
"""
return 0.0
[docs]class Leonard2014_Interplate(BaseMSRSigma, BaseASRSigma):
"""
Leonard, M., 2014. Self-consistent earthquake fault-scaling relations:
Update and extension to stable continental strike-slip faults.
Bulletin of the Seismological Society of America, 104(6), pp 2953-2965.
Implements both magnitude-area and area-magnitude scaling relationships.
"""
[docs] def get_std_dev_area(self, mag, rake):
"""
Returns zero for now
"""
return 0.0
[docs] def get_std_dev_mag(self, area, rake):
"""
Returns None for now
"""
return 0.0