Skip to main content

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.

Release files for dyntripy 3.2.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dyntripy 3.2.5.0
File Size Uploaded
dyntripy-3.2.5.0.tar.gz 17.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dyntripy 3.2.5.0
File Interpreter ABI Platform
dyntripy-3.2.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.4 kB

Release files / dyntripy-3.2.5.0.tar.gz

Download URL dyntripy-3.2.5.0.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aef1a026f253f7993b7834cda4922671dbb32103d5cf83ed4f5dada3bb9b9269
BLAKE2b-256 checksum
How to use checksums
a16aadfb6d7f2beb7065d7d73ced150b917bcb3fb71dace50749da941661278e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Release files / dyntripy-3.2.5.0-py3-none-any.whl

Download URL dyntripy-3.2.5.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecc92a3e42eb6894b1198abf8b362a9963d2cdc35bcf303a4d3491f00ecb2533
BLAKE2b-256 checksum
How to use checksums
cbadebf4970221df44c75e482a56b885bd5f45bc7224756f89a4c6e0db87194d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

3.2.5.0 This release

2 release files

3.2.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page