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. Create the config file that is needed for generating a Velocity Model

    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

    e.g. $ config_vm.py 7.1  46.00 172.3
    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


  3. Edit the parameter file to your requirements with prefered editor
    e.g. $ vim params_vel.py
  4. If you have edited the params_vel.py, please run test_vm_params.py
    $ test_vm_params.py
  5. Run make_vm.sh to create the Velocity Model
    $ make_vm.sh
  6. Follow the instruction given on the screen to provide a path to a admin.

...