Example #1
0
def create_base():
    """
    Set up for 19 events, 5 gmpe_max, 7 periods, 11 spawning, 3 rec mod. 
    2 Surfaces.
    
    17277 sites
    """
    sdp = ParameterData()

    # Operation Mode
    sdp.run_type = "hazard"
    sdp.is_scenario = False
    sdp.site_tag = "bench"
    sdp.return_periods = [
        100.75, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900
    ]

    sdp.input_dir = os.path.join(eqrm_data_home(), 'test_national',
                                 'memory_input')
    sdp.output_dir = os.path.join(eqrm_data_home(), 'test_national',
                                  'memory_output', 'trial_matrix')

    sdp.use_site_indexes = True  #False
    sdp.site_indexes = [1]
    sdp.event_control_tag = "use"
    sdp.zone_source_tag = ""

    # Probabilistic input
    sdp.prob_number_of_events_in_zones = [5, 5, 5, 4]

    # Attenuation
    sdp.atten_collapse_Sa_of_atten_models = False  #True
    sdp.atten_variability_method = 1
    sdp.atten_spawn_bins = 11
    sdp.atten_periods = [0.0, 0.2, 0.4, 0.6, 0.8, 0.9, 1.0]
    sdp.atten_threshold_distance = 400
    sdp.atten_override_RSA_shape = None
    sdp.atten_cutoff_max_spectral_displacement = False
    sdp.atten_pga_scaling_cutoff = 2
    sdp.atten_smooth_spectral_acceleration = None

    # Amplification
    sdp.use_amplification = True
    sdp.amp_variability_method = None
    sdp.amp_min_factor = 0.6
    sdp.amp_max_factor = 10000

    # Save
    sdp.save_hazard_map = True
    sdp.save_motion = False

    return sdp
Example #2
0
def create_base():
    """
    Set up for 19 events, 5 gmpe_max, 7 periods, 11 spawning, 3 rec mod. 
    2 Surfaces.
    
    17277 sites
    """
    sdp = ParameterData()
    
    # Operation Mode
    sdp.run_type = "hazard" 
    sdp.is_scenario = False
    sdp.site_tag = "bench"
    sdp.return_periods = [100.75, 200.0, 300.0, 400.0, 500.0, 
    600.0, 700.0, 800.0, 900]
    
    sdp.input_dir = os.path.join(eqrm_data_home(), 'test_national',
                      'memory_input')
    sdp.output_dir = os.path.join(eqrm_data_home(), 'test_national', 
                      'memory_output','trial_matrix')
    
    sdp.use_site_indexes = True #False 
    sdp.site_indexes = [1]
    sdp.event_control_tag = "use" 
    sdp.zone_source_tag = ""
    
    # Probabilistic input
    sdp.prob_number_of_events_in_zones = [5,5,5,4]
    
    # Attenuation
    sdp.atten_collapse_Sa_of_atten_models = False #True
    sdp.atten_variability_method = 1
    sdp.atten_spawn_bins = 11
    sdp.atten_periods = [0.0, 0.2, 0.4, 0.6, 0.8, 0.9, 1.0]
    sdp.atten_threshold_distance = 400
    sdp.atten_override_RSA_shape = None
    sdp.atten_cutoff_max_spectral_displacement = False
    sdp.atten_pga_scaling_cutoff = 2
    sdp.atten_smooth_spectral_acceleration = None
    
    # Amplification
    sdp.use_amplification = False #True
    sdp.amp_variability_method = None
    sdp.amp_min_factor = 0.6
    sdp.amp_max_factor = 10000
    
    # Save
    sdp.save_hazard_map = True
    sdp.save_motion = False
    
    return sdp
Example #3
0
def create_base():
    """
    
    """
    sdp = ParameterData()
    
    # Operation Mode
    sdp.run_type = "hazard" 
    sdp.is_scenario = False
    sdp.site_tag = "ENB"
    sdp.scenario_max_width = 15
    sdp.return_periods = [100, 500, 2500]
    
    # Keep this as None to avoid changing the data dir location.
    sdp.input_dir = None #os.path.join('..','EQRMinputs')
                    
    sdp.output_dir = None #os.path.join('.','output')
    
    sdp.use_site_indexes = True #False # 21666 sites, hazard
    sdp.site_indexes = [1]
    sdp.event_control_tag = "" 
    sdp.zone_source_tag = ""
    sdp.fault_source_tag = ""
    sdp.file_array = False
    sdp.prob_number_of_events_in_zones =  [2] * 3
    sdp.prob_number_of_events_in_faults =  [2] * 4
    
    # Attenuation
    sdp.atten_collapse_Sa_of_atten_models = False #True
    sdp.atten_variability_method = 1
    sdp.atten_spawn_bins = 5
    sdp.atten_periods = [0.0, 0.3, 1.0]
    sdp.atten_threshold_distance = 400
    sdp.atten_override_RSA_shape = None
    sdp.atten_cutoff_max_spectral_displacement = False
    sdp.atten_pga_scaling_cutoff = 2
    sdp.atten_smooth_spectral_acceleration = None
    sdp.atten_log_sigma_eq_weight = 0
    
    # Amplification
    sdp.use_amplification = False #True
    sdp.amp_variability_method = None
    sdp.amp_min_factor = 0.6
    sdp.amp_max_factor = 10000
    
    # Save
    sdp.save_hazard_map = True
    sdp.save_motion = False
    
    return sdp
Example #4
0
def create_base():
    """
    
    """
    sdp = ParameterData()

    # Operation Mode
    sdp.run_type = "hazard"
    sdp.is_scenario = False
    sdp.site_tag = "ENB"
    sdp.scenario_max_width = 15
    sdp.return_periods = [100, 500, 2500]

    # Keep this as None to avoid changing the data dir location.
    sdp.input_dir = None  #os.path.join('..','EQRMinputs')

    sdp.output_dir = None  #os.path.join('.','output')

    sdp.use_site_indexes = True  #False # 21666 sites, hazard
    sdp.site_indexes = [1]
    sdp.event_control_tag = ""
    sdp.zone_source_tag = ""
    sdp.fault_source_tag = ""
    sdp.file_array = False
    sdp.prob_number_of_events_in_zones = [2] * 3
    sdp.prob_number_of_events_in_faults = [2] * 4

    # Attenuation
    sdp.atten_collapse_Sa_of_atten_models = False  #True
    sdp.atten_variability_method = 1
    sdp.atten_spawn_bins = 5
    sdp.atten_periods = [0.0, 0.3, 1.0]
    sdp.atten_threshold_distance = 400
    sdp.atten_override_RSA_shape = None
    sdp.atten_cutoff_max_spectral_displacement = False
    sdp.atten_pga_scaling_cutoff = 2
    sdp.atten_smooth_spectral_acceleration = None
    sdp.atten_log_sigma_eq_weight = 0

    # Amplification
    sdp.use_amplification = False  #True
    sdp.amp_variability_method = None
    sdp.amp_min_factor = 0.6
    sdp.amp_max_factor = 10000

    # Save
    sdp.save_hazard_map = True
    sdp.save_motion = False

    return sdp
Example #5
0
def create_base_risk():
    """
    Using newcastle data.
    
    """
    
    sdp = ParameterData()
    
    # Operation Mode
    sdp.run_type = "risk_csm" 
    sdp.is_scenario = False
    sdp.site_tag = "newc"
    sdp.atten_periods =  [0.1, 0.2, 1.0]
    
    sdp.return_periods = [100.75, 200.0, 300.0, 400.0, 500.0, 
    600.0, 700.0, 800.0, 900]
    
    sdp.input_dir = os.path.join(eqrm_data_home(), 'test_national',
                      'memory_input')
    sdp.output_dir = os.path.join(eqrm_data_home(), 'test_national', 
                      'memory_output','trial_matrix')
    
    sdp.use_site_indexes = True #False 
    sdp.site_indexes = [1]
    sdp.event_control_tag = "use" 
    sdp.zone_source_tag = ""
    
    # Probabilistic input
    sdp.prob_number_of_events_in_zones = [5,5,5,4]
    
    # Attenuation
    sdp.atten_collapse_Sa_of_atten_models = False #True
    sdp.atten_variability_method = 1
    sdp.atten_spawn_bins = 11
    sdp.atten_periods = [0.0, 0.2, 0.4, 0.6, 0.8, 0.9, 1.0]
    sdp.atten_threshold_distance = 400
    sdp.atten_override_RSA_shape = None
    sdp.atten_cutoff_max_spectral_displacement = False
    sdp.atten_pga_scaling_cutoff = 2
    sdp.atten_smooth_spectral_acceleration = None
    
    # Amplification
    sdp.use_amplification = False #True
    sdp.amp_variability_method = None
    sdp.amp_min_factor = 0.6
    sdp.amp_max_factor = 10000
    
    # Buildings
    sdp.buildings_usage_classification = "FCB" 
    sdp.buildings_set_damping_Be_to_5_percent = False

    # Capacity Spectrum Method
    sdp.csm_use_variability = False
    sdp.csm_variability_method = None
    sdp.csm_standard_deviation = 0.3
    sdp.csm_damping_regimes = 0
    sdp.csm_damping_modify_Tav = True
    sdp.csm_damping_use_smoothing = True
    sdp.csm_hysteretic_damping = "curve" 
    sdp.csm_SDcr_tolerance_percentage = 1
    sdp.csm_damping_max_iterations = 7

    # Loss
    sdp.loss_min_pga = 0.05
    sdp.loss_regional_cost_index_multiplier = 1.4516
    sdp.loss_aus_contents = 0

    # Save
    sdp.save_hazard_map = True
    sdp.save_total_financial_loss = True
    sdp.save_hazard_map = True
    
    return sdp