ps2ff.run¶
-
ps2ff.run.
single_event_adjustment
(magnitude, hyp_depth, ar=1.7, mechanism=<Mechanism.A: 'A'>, mag_scaling=<MagScaling.WC94: 'WC94'>, n_repi=13, min_repi=0.1, max_repi=1000, nxny=3, n_theta=9, n_dip=3, min_dip=0, max_dip=1.5707963267948966, n_eps=3, trunc=2)[source]¶ Method for getting event-specific point source distance adjustment factors. This does not integrate across magnitude or depth and so those values must be provided.
Parameters: - magnitude (float) – Earthquake magnitude.
- hyp_depth (float) – Hypocentral depth (km).
- ar (float) – Aspect ratio (L/W).
- mechanism (Mechanism) – A ps2ff.constants Mechanism instance.
- mag_scaling (MagScaling) – A ps2ff.constants MagScaling instance.
- n_repi (int) – Number of log-spaced Repi points to compute conversions.
- min_repi (float) – Minimum Repi to compute conversions (km).
- max_repi (float) – Maximum Repi to compute conversions (km).
- nxny (int) – Number of integration steps in the x/y direction for floating, the rupture plane around the hypocenter.
- n_theta (int) – Number of integration steps for theta. Default value of 9 is an angular step size of 45 deg since it goes from 0 to 360 deg.
- n_dip (int) – Number of integration steps for dip. Default value of 3 gives a step size of 45 deg for the default range of 0 to 90 deg.
- min_dip (float) – Minimum dip for integration (rad).
- max_dip (float) – Maximum dip for integration (rad).
- n_eps (int) – Number of integration steps for mag-area relationship.
- trunc (float) – Truncation level for normal distribution of log area conditioned on magnitude.
- Retunrs:
tuple: All arrays of length n_repi:
- Repi (km).
- Average Rjb conditioned on Repi, M, and Zhyp.
- Average Rrup conditioned on Repi, M, and Zhyp.
- Variance of Rjb conditioned on Repi, M, and Zhyp.
- Variance of Rrup conditioned on Repi, M, and Zhyp.