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

Compare with Current View Page History

« Previous Version 5 Next »

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 station names and corresponding magnitudes, and a station list file with one station per line.

Outputs: A whitespace delimited file with station 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

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

  • No labels