You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

The following script can be used to calculate how many simulation jobs are needed for each fault given a model based on rupture magnitude.

The file names to be used for input and output can be found at the top and modified as needed.This can be changed to take command line input if required.

Works with both Python 2 and Python 3, but Python 3 is preferred.

This file provides the same output for the matlab file found here, given the input files provided on the page.

Dependencies: matplotlib

Inputs: A whitespace delimited file with source names and corresponding magnitudes, and a source list file with one source per line.

Outputs: A whitespace delimited file with source names and corresponding number of simulation counts and an image displaying the number of simulations for a given magnitude.

Run with

python3 run_C18p6_NumSim.py

run_C18p6_NumSim.py

Given the input files found on the Step 2 page

CS_list_v18p6.txtFault_LeonardMag_Length_Width_Rake.txt


We get the following output files, which are identical to the output when they are run with the Matlab script

fault_selection_c18p6_for_SRF.txt


  • No labels