Automated Plots (plot_nhm_outputs.py)
This script makes various plots of NHM outputs (SRF and VM) that are the inputs to Cybershake.
github/ucgmsim/Pre-processing/SrfGen/NHM/plot_nhm_outputs.py --srf-dir <autosrf> --vm-dir <autovm> --selection-file <nhm_selection> --out-dir <outputs>
All parameters are optional but there is no point in running unless --vm-dir or --srf-dir are specified which are in the same structure as output by running nhm2vm.py and srfinfo2srf.py respectively.
If selection file is given, text files will be creating that contain any missing items assuming it was used as the input to the above scripts to generate the VMs and SRFs.
The outdir is a directory that will be created to store all outputs (figures and text).
Sample Outputs (SRF)
Area/Leonard and Magnitude
Area SRF vs NHM
Also available as text.
Depth to Bottom of Fault
Magnitude SF vs NHM
Magnitude vs NRUP
SRF Length/Width comparisons to hh(Nstrike/Ndip)
Spacial Plots
Hypocentre Distributions
Individual Fault (text table also produced)
Combined P-value distribution
Combined P-value histograms for strike and dip
Sample Outputs (VM)
VM Corners
Magnitude vs Simulation Duration
Magnitude vs File Size
Parameter Consistency