Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to the VM directory that instruction has provided

    Code Block
    languagebash
    titleBash_code
    $ cd /nesi/projects/nesi00213/RealTime/20100904_Darfield_m7p1_201705191345/VM
  2. Execute config_vm.py to generate params_vel.py, a config file used for velocity modelling. The command is in the following format.

    $ config_vm.py magnitude centroid_Depth Latitude Longitude

    Code Block
    languagebash
    titleBash_code
    /nesi/projects/nesi00213/RealTime/20100904_Darfield_m7p1_201705191345/VM : config_vm.py -h
    usage: config_vm.py [-h] [--model_version MODEL_VERSION] [--min_vs MIN_VS]
                        [--topo_type TOPO_TYPE] [--hh HH]
                        [--extent_zmin EXTENT_ZMIN] [--extent_x EXTENT_X]
                        [--extent_y EXTENT_Y] [--extent_zmax EXTENT_ZMAX]
                        [--sim_duration SIM_DURATION] [--flo FLO] [--rot ROT]
                        [--code CODE] [--output_dir OUTPUT_DIR]
                        [--slice_params_dir SLICE_PARAMS_DIR]
                        mag centroidDepth lon lat
    positional arguments:
      mag
      centroidDepth
      lon
      lat
    optional arguments:
      -h, --help            show this help message and exit
      --model_version MODEL_VERSION
      --min_vs MIN_VS
      --topo_type TOPO_TYPE
      --hh HH
      --extent_zmin EXTENT_ZMIN
      --extent_x EXTENT_X
      --extent_y EXTENT_Y
      --extent_zmax EXTENT_ZMAX
      --sim_duration SIM_DURATION
      --flo FLO
      --rot ROT
      --code CODE
      --output_dir OUTPUT_DIR
      --slice_params_dir SLICE_PARAMS_DIR

    Three parameters mag, centroidDepth, lon, lat are mandatory. You can set other options with --option, such as --hh 0.2 or manually set by editing params_vel.py

    Code Block
    languagebash
    titleBash_code
    /nesi/projects/nesi00213/RealTime/20100904_Darfield_m7p1_201705191345/VM : config_vm.py 7.1  46.00 172.3 -43.6 --hh 0.2 --rot -10 --extent_x 140 --extent_y 120 --extent_zmax 46.0 --sim_duration 100
    mag = 7.1 centroidDepth = 46.0 lon= 172.3 lat = -43.6
    ############  Generated params_vel.py
    
    # If you edited this file manually, run 'test_vm_params.py' for integrity check !!!
    # Section I. Basic parameters (Manual Edit allowed)
    mag = '7.1'
    centroidDepth = '46.00'
    MODEL_LAT = '-43.6'
    MODEL_LON = '172.3'
    MODEL_ROT = '-10.0'
    hh = '0.200'
    min_vs = '0.5'
    model_version = '1.65'
    topo_type = 'BULLDOZED'
    output_directory = 'Rapid_Model'
    extracted_slice_parameters_directory = 'SliceParametersNZ/SliceParametersExtracted.txt'
    code = 'rt'
    # Section II. Derived parameters that can be manually editted
    extent_x = '140.0'
    extent_y = '120.0'
    extent_zmax = '46.0'
    extent_zmin = '0.0'
    sim_duration = '100.0'
    flo = '0.5'
    # Section III. Automated values. DO NOT EDIT (Manual changes will be ignored)
    nx = ' 700'
    ny = ' 600'
    nz = '230'
    sufx = '_rt01-h0.200'
    ############  Estimated Wallclock time
    nx=700 ny=600 nz=230 sim_duration=100 num_procs=512
    Maximum: 0:55:02
    Average: 0:17:16.597834
    Minimum: 0:11:58.613082
    
    


  3. You can manually edit params_vel.py. But you are strongly advised to run test_vm_params.py to validate your params_vel.py if manually edited. Note that values in Section II will be automatically computed based on the values in Section I, but user can manually edit them. However, any manual changes made to Section III will be ignored. 
    In the example, we execute test_vm_params.py after manually editing the value for "code" from "rt" to "nz". This creates new params_vel.py after making a backup of the original, and shows the difference between two. Notice " | " where a difference is observed (line 30).

    Code Block
    languagebash
    titleBash_code
    linenumberstrue
    /nesi/projects/nesi00213/RealTime/20100904_Darfield_m7p1_201705011613/VM :test_vm_params.py
    #####################   Backing up params_vel.py to params_vel.py.bak
    #####################  params_vel.py updated
    diff -y params_vel.py.bak params_vel.py
    # If you edited this file manually, run 'test_vm_params.py' f   # If you edited this file manually, run 'test_vm_params.py' f
    # Section I. Basic parameters (Manual Edit allowed)             # Section I. Basic parameters (Manual Edit allowed)
    mag = '7.1'                                                     mag = '7.1'
    centroidDepth = '46.00'                                         centroidDepth = '46.00'
    MODEL_LAT = '-43.6'                                             MODEL_LAT = '-43.6'
    MODEL_LON = '172.3'                                             MODEL_LON = '172.3'
    MODEL_ROT = '-10.0'                                             MODEL_ROT = '-10.0'
    hh = '0.200'                                                    hh = '0.200'
    min_vs = '0.5'                                                  min_vs = '0.5'
    model_version = '1.65'                                          model_version = '1.65'
    topo_type = 'BULLDOZED'                                         topo_type = 'BULLDOZED'
    output_directory = 'Rapid_Model'                                output_directory = 'Rapid_Model'
    extracted_slice_parameters_directory = 'SliceParametersNZ/Sli   extracted_slice_parameters_directory = 'SliceParametersNZ/Sli
    code = 'nz'                                                     code = 'nz'
    # Section II. Derived parameters that can be manually editted   # Section II. Derived parameters that can be manually editted
    extent_x = '140.0'                                              extent_x = '140.0'
    extent_y = '120.0'                                              extent_y = '120.0'
    extent_zmax = '46.0'                                            extent_zmax = '46.0'
    extent_zmin = '0.0'                                             extent_zmin = '0.0'
    sim_duration = '100.0'                                          sim_duration = '100.0'
    flo = '0.5'                                                     flo = '0.5'
    # Section III. Automated values. DO NOT EDIT (Manual changes    # Section III. Automated values. DO NOT EDIT (Manual changes
    nx = ' 700'                                                     nx = ' 700'
    ny = ' 600'                                                     ny = ' 600'
    nz = '230'                                                      nz = '230'
    sufx = '_rt01-h0.200'                                         | sufx = '_nz01-h0.200'
    
    ############  Estimated Wallclock time
    nx=700 ny=600 nz=230 sim_duration=100 num_procs=512
    Maximum: 0:55:02
    Average: 0:17:16.597834
    Minimum: 0:11:58.613082
    
    
  4. Run make_vm.sh to create the Velocity Model

    Follow the instruction given on the screen to provide a path to a admin.
    Code Block
    languagebash
    titleBash_code
    linenumberstrue
    20100904_Darfield_m7p1_201705191345/VM :make_vm.sh
    Executing genDomain.py
    Reading domain extents.
    Reading of domain extents. Complete.
    Writing generate velocity model shell scrip.
    Writing generate velocity model shell scrip. Complete.
    Generating velocity model.
    ==========================================
    Running GENERATE_VELOCITY_MOD.
    ==========================================
    ...
    ==========================================
    Completed running GENERATE_VELOCITY_MOD.
    ==========================================
    ...
    ==========================================
    Running EXTRACT_VELOCITY_SLICES.
    ==========================================
    ...
    ==========================================
    Completed running EXTRACT_VELOCITY_SLICES.
    ==========================================
    ...
    /nesi/projects/nesi00213/tools/gen_model_cords geoproj=1 gridfile=./Rapid_Model/Rapid_Model/Velocity_Model/gridfile_nz01-h0.200 gridout=./Rapid_Model/Rapid_Model/Velocity_Model/gridout_nz01-h0.200 center_origin=1 do_coords=1 nzout=1 name=./Rapid_Model/Rapid_Model/Velocity_Model/model_coords_nz01-h0.200 gzip=0 latfirst=0 modellon=172.3 modellat=-43.6 modelrot=-10.0 1> ./Rapid_Model/Rapid_Model/Velocity_Model/model_params_nz01-h0.200 2>/dev/null
    Generating model params and cords. Complete.
    Moving velocity model plots.
    Moving velocity model plots. Complete.
    Removing generated scripts.
    Rapid model generation complete.
    Model/20100904_Darfield_m7p1/v1.65_200m
    !!!!!  Ask Admin to upload: Give him the path: /nesi/projects/nesi00213/RealTime/20100904_Darfield_m7p1_201705191345/VM !!!!!
  5. Under the working directory VM, a subdirectory is created Model/20100904_Darfield_m7p1/v1.65_200m which contains the velocity model.

    Code Block
    languagebash
    titleBash_code
    linenumberstrue
    /nesi/projects/nesi00213/RealTime/20100904_Darfield_m7p1_201705191345/VM/Model/20100904_Darfield_m7p1/v1.65_200m :ls
    gridfile_nz01-h0.200  Info                      model_coords_nz01-h0.200  params_vel.py  vp3dfile.p
    gridout_nz01-h0.200   model_bounds_nz01-h0.200  model_params_nz01-h0.200  rho3dfile.d    vs3dfile.s
  6. Give the admin (Sung) the path to the VM working directory and request to upload the model. The admin will need to execute sendme.sh in the VM directory.

    Code Block
    languagebash
    titleBash_code
    linenumberstrue
    /nesi/projects/nesi00213/RealTime/20100904_Darfield_m7p1_201705191345/VM/sendme.sh
    SCP Upload tool
    Establishing SSH connection to: fitzroy.nesi.org.nz 22 ...
    Node size : 4
    ****************************************
    /home/nesi00213...del/20100904_Darfield_m7p1/v1.65_200m/Info                       49 Bytes Completed
    /home/nesi00213...904_Darfield_m7p1/v1.65_200m/params_vel.py                      756 Bytes Completed
    /home/nesi00213...d_m7p1/v1.65_200m/model_params_nz01-h0.200                      381 Bytes Completed
    /home/nesi00213...field_m7p1/v1.65_200m/gridfile_nz01-h0.200                      155 Bytes Completed
    /home/nesi00213...d_m7p1/v1.65_200m/model_bounds_nz01-h0.200                       96.3 KiB Completed
    /home/nesi00213...rfield_m7p1/v1.65_200m/gridout_nz01-h0.200                       52.4 KiB Completed
    /home/nesi00213...d_m7p1/v1.65_200m/model_coords_nz01-h0.200                       15.2 MiB Completed
    /home/nesi00213...100904_Darfield_m7p1/v1.65_200m/vs3dfile.s                      368.5 MiB Completed
    /home/nesi00213...00904_Darfield_m7p1/v1.65_200m/rho3dfile.d                      368.5 MiB Completed
    /home/nesi00213...100904_Darfield_m7p1/v1.65_200m/vp3dfile.p                      368.5 MiB Completed
    Node 1: /home/nesi00213...100904_Darfield_m7p1/v1.65_200m/vs3dfile.s     368.5 MiB/368.5 MiB 100.0%
    Node 2: /home/nesi00213...00904_Darfield_m7p1/v1.65_200m/rho3dfile.d     368.5 MiB/368.5 MiB 100.0%
    Node 3: /home/nesi00213...100904_Darfield_m7p1/v1.65_200m/vp3dfile.p     368.5 MiB/368.5 MiB 100.0%
  7. Files have been successfully uploaded to Fitzroy.

    Code Block
    languagebash
    titleBash_code
    linenumberstrue
    baes@nesi2 /nesi/projects/nesi00213/VelocityModels/NZ/20100904_Darfield_m7p1/v1.65_200m :ls
    Info                  gridout_nz01-h0.200       model_coords_nz01-h0.200  params_vel.py  vp3dfile.p
    gridfile_nz01-h0.200  model_bounds_nz01-h0.200  model_params_nz01-h0.200  rho3dfile.d    vs3dfile.s



3. How to create Rupture Model (Source)

...