|
|
To run ShakeMap, the data associated with an event needs to be added to the data directory. Numerous event data are included in this repository in the `tests/data/eventdata` directory. You can copy one or more of these directories to the data directory associated with your shakemap profile. Using the example from the previous section on setting up profiles, this would be
|
|
To run ShakeMap, the an event needs to be added to the data directory. The easiest way to create an event is to use the *sm_clone* tool, which should be in your path. To create a data directory for the January 1994 Northridge earthquake, you would run the following command:
|
|
|
```
|
|
```
|
|
|
cp -R [shakemap]/tests/data/eventdata/northridge \
|
|
sm_clone ci3144585
|
|
|
/home/shake/ShakeMap/default/data/.
|
|
|
|
|
```
|
|
```
|
|
|
where `[shakemap]` is the directory to the local clone of this repository.
|
|
where `ci3144585` is the ComCat event ID for the Northridge earthquake. The corresponding web page for that event is:
|
|
|
|
|
|
|
|
https://earthquake.usgs.gov/earthquakes/eventpage/ci3144585
|
|
|
|
|
|
|
|
The programs for running ShakeMap are all managed by the command [shake](http://usgs.github.io/shakemap/programs/shake.html). The basic idea is that you will call `shake`, which has a number of optional arguments, but it is followed by an event id (i.e., the name of the event directory in the data directory) and then the names of the modules that you want to run for that event. You can get help in a terminal like this
|
|
The programs for running ShakeMap are all managed by the command [shake](http://usgs.github.io/shakemap/programs/shake.html). The basic idea is that you will call `shake`, which has a number of optional arguments, but it is followed by an event id (i.e., the name of the event directory in the data directory) and then the names of the modules that you want to run for that event. You can get help in a terminal like this
|
|
|
```
|
|
```
|
| ... | @@ -39,9 +40,9 @@ Available modules: |
... | @@ -39,9 +40,9 @@ Available modules: |
|
|
- select - Parse STREC output, make a GMPE set, create model_zc.conf.
|
|
- select - Parse STREC output, make a GMPE set, create model_zc.conf.
|
|
|
- stations -- Generate stationlist.json from shake_result.hdf.
|
|
- stations -- Generate stationlist.json from shake_result.hdf.
|
|
|
```
|
|
```
|
|
|
So a simple call to organize the input data for the 'northridge' event into the HDF input file would be
|
|
So a simple call to organize the input data for the 'ci3144585' event into the HDF input file would be
|
|
|
```
|
|
```
|
|
|
> shake northridge assemble
|
|
> shake ci3144585 assemble
|
|
|
INFO ; 2018-02-09 11:43:24 ; shake.main ; Running command assemble
|
|
INFO ; 2018-02-09 11:43:24 ; shake.main ; Running command assemble
|
|
|
INFO ; 2018-02-09 11:43:24 ; shake.main ; Finished running command assemble: Elapsed 0.14 secs
|
|
INFO ; 2018-02-09 11:43:24 ; shake.main ; Finished running command assemble: Elapsed 0.14 secs
|
|
|
```
|
|
```
|
| ... | |
... | |
| ... | | ... | |