Package gov.usgs.earthquake.nshmp.calc
Class HazardCalcs
java.lang.Object
gov.usgs.earthquake.nshmp.calc.HazardCalcs
Static probabilistic seismic hazard analysis calculators.
- Author:
- U.S. Geological Survey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Hazardhazard(HazardModel model, CalcConfig config, Site site, Executor exec) Compute probabilistic seismic hazard curves at asiteusing the suppliedmodelandconfig.
-
Constructor Details
-
HazardCalcs
public HazardCalcs()
-
-
Method Details
-
hazard
Compute probabilistic seismic hazard curves at asiteusing the suppliedmodelandconfig. If anexecutoris 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
configwill be ignored as the supplied model will already have been initialized.- Parameters:
model- to useconfig- calculation configurationsite- of interestexec- optionalExecutorto distribute calculation
-