└── config_region2_station2.ini <- ... scan at another station
```
If you want to separate different regions, you can also create a 'sequence'
...
...
@@ -63,20 +63,24 @@
.
├── _sequence_region1
│ ├── data
│ │ └── SED-events_region1_{station}_mseed
│ │ └── catalog-events_region1_{station}_mseed
│ |
│ ├── results_{station}_{startdate}_{enddate} <- with config.set_dir(regionName=False)
│ └── config_region1.ini
│ ├── results_{station}_{startdate}_{enddate}
│ └── config_region1.ini <- set OUTDIR_REGION_NAME = NO (to omit region name in results folder name)
│
└── _sequence_region2
├── data
│ └── SED-events_region2_{station}_mseed
│ ├── catalog-events_region2_{station1}_mseed
│ └── catalog-events_region2_{station2}_mseed
|
├── results_{station}_{startdate}_{enddate} <- with config.set_dir(regionName=False)
└── config_region2.ini
├── results_{station}_{startdate}_{enddate}
├── config_region2_station1.ini <- set OUTDIR_REGION_NAME = NO
└── config_region2_station2.ini (also here)
```
3. Edit the file config.ini and run the tool.
3. Edit the file config.ini to your needs and run the tool.
---
...
...
@@ -84,64 +88,91 @@
1. Provide a reference catalog in csv-Format
* Option 1:provide the file in appropriate format
* Option 2: query the SED-DB with a sql-file in the `data` directory; an example can be found in `Example/data/seddb_SQL_query.sql`. At the end of the example file there are the parameters you need to change: Station, Lat , Lon , Radius, max. depth. Once the settings have been updated you can run the following command, which will use the file just edited, to query the events from the SED database.
* Option 2:query the SED-DB with a sql-file in the `data` directory; an example can be found in `Example/data/seddb_SQL_query.sql`.
At the end of the example file there are the parameters you need to change:
*Station*,*Lat*,*Lon*,*Radius*,and *max. depth*.
Once the settings have been set, you can execute the following command to query the events from the SED database.
```
python3 xcorr.py config.ini --get-from-DB
```
2. Preload your catalog events and place them in the data folder, so that you can inspect them:
```
python3 xcorr.py config.ini --preload-events
```
Now go through the waveform plots in the `data/catalog-\*` directory and review your new waveforms.
Comment out events you don't want to use as templates (e.g., low quality events) in the `seddb-\*.csv` file (with a `#` at the start of a line).
Now go throug the waveform plots in the data/catalog-\* directory and comment-out all low quality events that you not want to use as templates in the seddb-\*.csv-file (# at start of line)
Important:
After you have commented-out events, delete the "data/catalog-\*"-directories and rerun the preload-events command.
Important:
**!! Important:** If you commented out events in the `seddb-\*.csv` file, delete the `data/catalog-\*` directories and rerun the preload-events command.
If you update the seddb-\*.csv file, make sure to keep the seddb-\*.csv.old-part of your catalog unchanged. Only add new events from the seddb-\*.csv file that are junger than
the oldest event in the seddb-\*.csv.old-file to the end of the seddb-\*.csv.old-file. Rename this combined file to seddb-\*.csv and run the preload-events command. Review your new waveforms, commet-out events you not want to use as templates in the seddb-\*csv file, delete the data/catalog-\* directories and rerun the preload-events command.
**!! Important (for updating the scan later on):** If you update the `seddb-\*.csv` file (with the command in step 1),
make sure to keep the `seddb-\*.csv.old`-part of your catalog unchanged.
Only append new events from updated new `seddb-\*.csv` file that are junger than the
oldest event in the `seddb-\*.csv.old` file to the end of the `seddb-\*.csv.old` file.
Rename this `seddb-\*.csv.old` file to `seddb-\*.csv`.
Now you are ready to execute the preload-events command.
!!If you not follow this steps your magnitude regression and event assoziation might go wrong!!
**If you do not follow these steps, your magnitude regression and event association might go wrong!!**