Event_to_MR_Hazd | R Documentation |
This function takes a target magnitude and/or distance hazard distribution and an events to calculate the hazard of the event at each of the corresponding magnitude/distance/ intensity measure type/intensity measure level or return period.
Event_to_MR_Hazd(
MR_Hazd,
Mag,
AnnualOccurrenceRate,
Fault_type,
region = 1,
Sitelist,
distribution = "cdf"
)
MR_Hazd |
A dataframe with six or seven (if both magnitude and distance hazard distributions are interested)
columns: "IM_type", "Deagg_level", "SiteName", "IM_level", "Hazd", "Magnitude"/"R_distance"
(or "MagRType" and "MagR"). Note the column names should exactly match these variable names.
|
Mag |
The magnitude of the event |
AnnualOccurrenceRate |
The annual occurrence rate of the event |
Fault_type |
The fault type of the event: 0 for unspecified fault; 1 for strike-slip fault; 2 for normal fault; 3 for reverse fault |
region |
The region of the event. Default is 1 for California |
Sitelist |
A dataframe of sites with four columns: SiteName (should be consistent with
the |
distribution |
The distribution representation. "cdf" stands for cumulative hazard and "pdf" stands for discrete bin hazard. |
A dataframe with six or seven (if both magnitude and distance hazard distributions are interested) columns is returned, the columns inlcude IM_type, Deagg_level, SiteName, IM_level, Hazd_event, Magnitude/R_distance (or MagRType and MagR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.