Class HazardCalcs


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

      • HazardCalcs

        public HazardCalcs()
    • Method Detail

      • 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