A package for detecting dynamic triggering automatically
Project description
DynTriPy
A package for detecting dynamic triggering.
Install
Run the following code in the terminal in the source code package:
python setup.py install
Usage
Triggering class
Triggering is the implement of HiFi Yun et al., 2019 to detect dynamic triggering. An instance should be defined firstly by passing an input file containing all parameters used in the detection process.
We provide some test data, examples of input file and performing script of dyntripy on our github. Please download and run them to test whether the dyntripy package can perform normally.
Detailed descriptions of the key words in the input file are as follows:
- "data_source"
- "station_file": file containing station names
- "waveform_path": folder of raw sac/mseed data
- "response_file": file of PZ files summary
- "remote_earthquake_catalog": catalog file of remote earthquakes
- "net_database"
+ "days": [M_1, M_2]; power integrals of M1 days before and M2 days after the dates of distant earthquakes are computed
- "nperseg": number of points for each time segment
- "noverlap": overlap of points for two time segments
- "nfft": point number to calculate fft
- "frequency_segment": [min, step, max]; minimum (min), segment length (step), and maximum (max) of the frequency segments
- "database_path": path to store the power integral database
- "net_ratio"
- "RE_path": folder to store the logarithmic ratio values of the remote earthquakes
- "background_days": [N_1, N_2]; select N_1 days before and N_2 days after the dates of distant earthquakes as background days
- "background_catalog": catalog file of the virtual events in background days
- "RB_path": folder to store the logarithmic ratio values of the background days
- "net_cl"
- "matched_ratio_path": folder to store the matched ratio of remote earthquakes and background days
- "cl_path": folder to store the confidence levels
- "threshold": threshold of confidence level to identify triggering
- "figure_path": folder to store the figures about the distribution of the logarithmic ratio values for each remote earthquake at each station. If don't want to plot these figures, just set this parameter as "None".
Notes
example_data_prepare.py gives some tools to preprocess the data. Only function of catalog_processing() is suitable for most of tasks and data, so we give its using description. For other functions, use according to yourself's task and data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dyntripy-3.2.5.0.tar.gz.
File metadata
- Download URL: dyntripy-3.2.5.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aef1a026f253f7993b7834cda4922671dbb32103d5cf83ed4f5dada3bb9b9269
|
|
| MD5 |
4930ee5087fc0b7d2d343c5e08c31b3c
|
|
| BLAKE2b-256 |
a16aadfb6d7f2beb7065d7d73ced150b917bcb3fb71dace50749da941661278e
|
File details
Details for the file dyntripy-3.2.5.0-py3-none-any.whl.
File metadata
- Download URL: dyntripy-3.2.5.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecc92a3e42eb6894b1198abf8b362a9963d2cdc35bcf303a4d3491f00ecb2533
|
|
| MD5 |
a6ed5f9dfe69cc883d26e19cc3a1788e
|
|
| BLAKE2b-256 |
cbadebf4970221df44c75e482a56b885bd5f45bc7224756f89a4c6e0db87194d
|