Skip to content

Commit

Permalink
adding asce41 parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelaVillani committed Sep 25, 2023
1 parent 6621d8f commit 785cd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openquake/calculators/postproc/compute_rtgm.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ def get_asce41(dstore, mce, facts):
print(facts)

BSE2N_Ss = mce['SA(0.2)']
Ss_5_50 = dset[0][id02][id_5_50] * facts[1] # this is hard coded 1 but when we extended this should correspond to id02
Ss_5_50 = dset[0][id02][id_5_50] * facts[1] # this is hard coded 1 but when we extend this should correspond to id02
BSE2E_Ss = min(Ss_5_50,BSE2N_Ss)
BSE1N_Ss = 2/3 * BSE2N_Ss
Ss_20_50 = dset[0][id02][id_20_50] * facts[1]
BSE1E_Ss = min(Ss_20_50,BSE1N_Ss)

BSE2N_S1 = mce['SA(1.0)']
S1_5_50 = dset[0][id1][id_5_50] * facts[2] # this is hard coded 1 but when we extended this should correspond to id1
S1_5_50 = dset[0][id1][id_5_50] * facts[2] # this is hard coded 2 but when we extend this should correspond to id1
BSE2E_S1 = min(S1_5_50,BSE2N_S1)
BSE1N_S1 = 2/3 * BSE2N_S1
S1_20_50 = dset[0][id1][id_20_50] * facts[2]
Expand Down

0 comments on commit 785cd83

Please sign in to comment.