public class HazardCalcs extends Object
| Constructor and Description |
|---|
HazardCalcs() |
| Modifier and Type | Method and Description |
|---|---|
static Deaggregation |
deaggIml(Hazard hazard,
double iml,
Executor exec)
Deaggregate probabilistic seismic hazard at the supplied intensity measure
level (in units of g).
|
static Deaggregation |
deaggReturnPeriod(Hazard hazard,
double returnPeriod,
Executor exec)
Deaggregate probabilistic seismic hazard at the supplied return period (in
years).
|
static Hazard |
hazard(HazardModel model,
CalcConfig config,
Site site,
Executor exec)
Compute probabilistic seismic hazard curves at a
site using the
supplied model and config. |
static Function<Source,InputList> |
sourceToInputs(Site site)
Return a
Function that converts a Source along with an
initially supplied Site to a list of ground motion model inputs. |
public static Function<Source,InputList> sourceToInputs(Site site)
Function that converts a Source along with an
initially supplied Site to a list of ground motion model inputs.site - to initialize function withInputListpublic static Deaggregation deaggReturnPeriod(Hazard hazard, double returnPeriod, Executor exec)
Call this method with the Hazard result of
hazard(HazardModel, CalcConfig, Site, Executor) to which you
supply the calculation settings and sites of interest that will also be
used for deaggregation.
Note: any model initialization settings in config will be
ignored as the supplied model will already have been initialized.
hazard - to deaggregatereturnPeriod - at which to deaggregate (in years)Deaggregation objectpublic static Deaggregation deaggIml(Hazard hazard, double iml, Executor exec)
Call this method with the Hazard result of
hazard(HazardModel, CalcConfig, Site, Executor) to which you
supply the calculation settings and sites of interest that will also be
used for deaggregation.
Note: any model initialization settings in config will be
ignored as the supplied model will already have been initialized.
hazard - to deaggregateiml - intensity measure level at which to deaggregate (in g)imt - an optional (single) IMT at which to deaggregateDeaggregation objectpublic static Hazard hazard(HazardModel model, CalcConfig config, Site site, Executor exec)
site using the
supplied model and config. If an executor is
supplied,the calculation will be distributed; otherwise, it will run on the
current thread. Be sure to shutdown any supplied executor after a
calculation completes.
Note: any model initialization settings in config will be
ignored as the supplied model will already have been initialized.
model - to useconfig - calculation configurationsite - of interestexec - optional Executor to distribute calculation