Source code for openquake.hazardlib.gsim.armenia_2016
# -*- coding: utf-8 -*-# vim: tabstop=4 shiftwidth=4 softtabstop=4## Copyright (C) 2013-2025 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/>."""Armenian modification to selected active shallow crustal GMPEsModule exports :class:`AkkarEtAlRjb2014Armenia`,:class:`BindiEtAl2014RjbArmenia`,:class:`BooreEtAl2014LowQArmenia`,:class:`CauzziEtAl2014Armenia`,:class:`KaleEtAl2015Armenia`,:class:`KothaEtAl2016Armenia`,:class:`ChiouYoungs2014Armenia`"""importnumpyasnpfromopenquake.hazardlib.gsim.baseimportCoeffsTablefromopenquake.hazardlib.gsim.akkar_2014importAkkarEtAlRjb2014fromopenquake.hazardlib.gsim.bindi_2014importBindiEtAl2014Rjbfromopenquake.hazardlib.gsim.boore_2014importBooreEtAl2014LowQfromopenquake.hazardlib.gsim.cauzzi_2014importCauzziEtAl2014fromopenquake.hazardlib.gsim.kale_2015importKaleEtAl2015Turkeyfromopenquake.hazardlib.gsim.kotha_2016importKothaEtAl2016Turkeyfromopenquake.hazardlib.gsim.chiou_youngs_2014importChiouYoungs2014
[docs]defcompute(self,ctx:np.recarray,imts,mean,sig,tau,phi):""" Adjustments for Armenia """self.__class__.__base__.compute(self,ctx,imts,mean,sig,tau,phi)form,imtinenumerate(imts):C_ADJ=self.COEFFS_ADJUST[imt]# Offset factor is dependent on magnitude and inter-event residualmean[m]+=(C_ADJ["a"]+C_ADJ["b"]*ctx.mag)*tau[m]tau[m]=tau[m]*C_ADJ["tau_adj"]phi[m]=phi[m]*C_ADJ["sig_adj"]sig[m]=np.sqrt(tau[m]**2+phi[m]**2)
[docs]classAkkarEtAlRjb2014Armenia(AkkarEtAlRjb2014):""" Adjustment of Akkar et al based on Armenian data """COEFFS_ADJUST=CoeffsTable(sa_damping=5,table="""\ IMT a b tau_adj sig_adj pga -4.41108 0.67245 1.237606958 1.382804565 0.01 -4.41108 0.67245 1.237606958 1.382804565 0.1 -4.26857 0.63633 1.234234554 1.411711027 0.15 -3.58023 0.53806 1.213586478 1.454392101 0.2 -3.21751 0.47609 1.197379023 1.431701071 0.25 -2.75984 0.39380 1.117471608 1.370689616 0.3 -2.51856 0.35743 1.058800958 1.366881400 0.4 -1.98910 0.27073 0.975805217 1.275963791 0.5 -1.77380 0.24280 0.959430009 1.260264111 0.75 -1.63645 0.23295 0.905920923 1.166368305 1.0 -1.79853 0.26714 0.927536136 1.115748947 2.0 -1.83168 0.26919 0.891918855 1.078281365 3.0 -1.90646 0.28960 0.924211474 1.139651450 4.0 -1.90646 0.28960 0.924211474 1.139651450 """)compute=compute
[docs]classBindiEtAl2014RjbArmenia(BindiEtAl2014Rjb):""" Adjustment of Bindi et al based on Armenian data """COEFFS_ADJUST=CoeffsTable(sa_damping=5,table="""\ IMT a b tau_adj sig_adj pga -3.53175 0.51121 1.148988194 1.339231170 0.01 -3.53175 0.51121 1.148988194 1.339231170 0.10 -4.01062 0.58731 1.186227974 1.369630629 0.15 -3.60795 0.53588 1.184067775 1.449236792 0.20 -3.38293 0.49443 1.170257166 1.438171195 0.25 -2.60904 0.35474 1.073720674 1.375382159 0.30 -2.21182 0.28479 1.021028896 1.382389947 0.40 -1.44091 0.15445 0.957455011 1.310175818 0.50 -0.97126 0.08268 0.908470546 1.243316094 0.75 -0.59226 0.03920 0.865291003 1.168719929 1.00 -0.66675 0.08514 0.842739543 1.070340828 2.00 -0.78984 0.09427 0.804244641 1.021916357 3.00 -0.91307 0.09874 0.873047313 1.096061687 4.00 -0.91307 0.09874 0.873047313 1.096061687 """)compute=compute
[docs]classBooreEtAl2014LowQArmenia(BooreEtAl2014LowQ):""" Adjustment of Boore et al for Low Q regions - adjusted for Armenian data """COEFFS_ADJUST=CoeffsTable(sa_damping=5,table="""\ IMT a b tau_adj sig_adj pga -5.45458 0.84260 1.633057382 1.315998086 0.01 -5.45458 0.84260 1.633057382 1.315998086 0.10 -5.45010 0.78926 1.531996667 1.326562840 0.15 -4.64516 0.65549 1.575356285 1.421007734 0.20 -3.98702 0.55509 1.585970506 1.411586591 0.25 -3.11883 0.42217 1.524902361 1.368089701 0.30 -2.80831 0.39356 1.472224512 1.388970102 0.40 -2.63587 0.38977 1.418578519 1.362769784 0.50 -2.66857 0.41789 1.349996281 1.333836045 0.75 -2.76879 0.48144 1.283089899 1.290967084 1.00 -2.42320 0.43353 1.199592804 1.258813632 2.00 -2.67819 0.50808 1.137460426 1.303954815 3.00 -2.58421 0.48516 1.121100923 1.357550507 4.00 -2.58421 0.48516 1.121100923 1.357550507 """)compute=compute