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

Compare with Current View Page History

« Previous Version 6 Next »


The first step to run a Cybershake is to create the list of faults that you will consider running GM simulations for.

This list usually based on the PGV threshold that we specify to generate velocity models (VMs). For a given PGV threshold, some of the VM will have a small land coverage (i.e., less than 1% of the VM surface inland) and we will exclude them from the list of the considered faults. The text file containing all the faults in NZ based on Stirling et al 2012 BSSA paper is  NZ_FLTmodel_2010_Modified.txt . Please note that Karim has edited the original file to address these issues, as outlined here Corrections to NHM file.


Steps:

To generate this list, you need to run this code srfinfo2vm.py . Here is the steps to run it on a directory (e.g., your home directory) on the hypcoentre:


> clone https://github.com/ucgmsim/Pre-processing.git


> cd to where you have srfinfo2vm.py  code: e.g.  cd   /home/kta54/Pre-processing/SrfGen


> export PYTHONPATH=$PYTHONPATH:/home/vap30/ucgmsim/Empirical_Engine   

srfinfo2vm.py   makes use of Empirical_Engine , so you need to add that to your path. You can either clone it from Empirical_Engine or use it from /home/vap30/ucgmsim/Empirical_Engine 

 

> python srfinfo2vm.py NHM  --nhm-file  Nhm_file_Directory.txt  --pgvPGV   --hh HH  --dtDT  --space-land  SPACE_LAND   --space-srf   SPACE_SRF   --nproc NPROC   --novm   --selection

The -- nhm-file option point to the NZ_FLTmodel_2010_v18p6.txt file that should be the NZ_FLTmodel_2010_Modified.txt explained above.

The --pgv option assigns the PGV threshold for setting the initial boundary of the VMs before running the optimization.

The --hh option assigns the grid size for the VMs.

The  -- dt option assigns the dt to run the simulations. This is written into the params files that will be generated.

The --space-land  assigns the minimum distance between the edge of the VM and shoreline

The --space-srf   SPACE_SRF  assins the minimum distance between the tip of the SRF and the edge of the VM

The --nproc NPROC is the number of processes you use to run the code.

The --novm option tells the code to just create the param files for the VM (which involves running the VM domain optimization code). 

The --selection option will write the VMs that are generated to a text file. THIS IS THE LIST WE WERE AIMING TO GET.

Note: You can type 'python srfinfo2vm.py -h' to see the help options, but for this stage, the above parameters are sufficient.

 

Example:

> python srfinfo2vm.py NHM  --nhm-file  Nhm_file_Directory.txt  --pgvPGV   --hh HH  --dtDT  --space-land  SPACE_LAND   --space-srf   SPACE_SRF   --nproc NPROC   --novm   --selection

 

Notes:

The code is created by Viktor.

 

 

  • No labels