Class HazardCalcs

java.lang.Object
gov.usgs.earthquake.nshmp.calc.HazardCalcs

public class HazardCalcs extends Object
Static probabilistic seismic hazard analysis calculators.
Author:
U.S. Geological Survey
  • Constructor Details

    • HazardCalcs

      public HazardCalcs()
  • Method Details

    • hazard

      public 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. 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.

      Parameters:
      model - to use
      config - calculation configuration
      site - of interest
      exec - optional Executor to distribute calculation