Run plot_nhm_outputs.py to verify the generated inputs:

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).


Here is the framwork / collection of ideas for input verifications, along with example results

Cybershake Input verification

Estimation of core hours/run time

Estimation of a cybershake folder can be using the estimate_cybershake.py script in the [slurm_gm_workflow] repository.

The script requires the following arguments:

  • vms_dir - The absolute path to the VMs directory
  • sources_dir - The absolute path to the Sources directory

And the optional arguments are:

  • runs_dir - The absolute path to the Runs directory. Setting this allows estimation of HF and BB. If the Runs directory is not provided estimation is only done for LF.
  • fault_selection - The cybershake fault selection text file. Ignored if the runs_dir is specified.
  • cybershake_config - Cybershake config file to retrieve dt. Ignored if runs_dir is specified.
  • output - Output csv file
  • verbose - If set, estimations are printed per fault instead of just the totals.

Example:

python3 estimate_cybershake /home/cbs51/code/tmp/test_pred/data/VMs /home/cbs51/code/tmp/test_pred/data/Sources --runs_dir /home/cbs51/code/tmp/test_pred/Runs --verbose

This will run core hours estimation for LF/HF and BB and display the results.

Please refer to page Estimation of core hours/run time for any change/update.

  • No labels