Skip to main content

An ObsPy library for event detection and seismic attribute calculation: preparing waveforms for automated analysis

DOI

This package is an extension for the observational seismology obspy software package that provides a streamlined tool tailored to the processing of seismic signals from non-earthquake sources, in particular those from deforming systems such as glaciers and landslides. This seismic attributes library provides functionality to: (1) download and/or pre-process seismic waveform data; (2) detect and catalogue seismic events using multi-component signals from one or more seismometers; and (3) calculate characteristics ('attributes'/'features') of the identified events. The workflow is controlled by three main functions that have been tested for the breadth of data types expected from permanent and campaign-deployed seismic instrumentation. A selected STA/LTA-type (short-term average/long-term average), or other, event detection algorithm can be applied to the waveforms and user-defined functions implemented to calculate any required characteristics of the detected events. The code is written in Python 2/3 and has detailed documentation and worked examples available on GitHub (https://github.com/rossjturner/seismic_attributes).

Installation

This package can either be installed using pip or from a .zip file downloaded from the GitHub repository using the standard Python package distutils.

Install using pip

The following command will install the latest version of the seismic attributes library from the Python Packaging Index (PyPI):

pip install seismic_attributes

Install from GitHub repository

The package can be downloaded from the GitHub repository at https://github.com/rossjturner/seismic_attributes, or cloned with git using:

git clone https://github.com/rossjturner/seismic_attributes.git

The package is installed by running the following command as an administrative user:

python setup.py install

Unit testing

The successful installation of the package can be verified using the Python package pytest. The unit tests require internet access to run as data is downloaded from the Incorporated Research Institutions for Seismology (IRIS) server; downloaded data will be saved in the working directory.

Before the test

Find the path to the installed seismic_attributes package. If the package was installed using pip this is achieved as follows:

pip show seismic_attributes

The path to the seismic_attributes directory is shown next to 'Location:'.

Running the test

The unit test is run with pytest (which should be installed with seismic_attributes by default) using the following command:

pytest path_to_directory/seismic_attributes

The unit test takes approximately 10-20 seconds to run. Five tests are conducted which verify the seismic_attributes package is correctly linked with obspy, can download data from the IRIS server, produces an event catalogue with the expected output, and calculates attributes for events as expected.

Documentation and Examples

Full documentation of the functions included in the seismic_attributes package, in addition to worked examples, is included in seismic_attributes_user.pdf on the GitHub repository. The worked examples are additionally included in the following Jupyter notebook: seismic_attributes_example.ipynb.

Contact

Ross Turner <turner.rj@icloud.com>

Release files for seismic-attributes 1.0.5

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

Source distribution (sdist)

Source distribution for seismic-attributes 1.0.5
File Size Uploaded
seismic_attributes-1.0.5.tar.gz 23.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for seismic-attributes 1.0.5
File Interpreter ABI Platform
seismic_attributes-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 46.4 kB

Release files / seismic_attributes-1.0.5.tar.gz

Download URL seismic_attributes-1.0.5.tar.gz
Size 23.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a54cda9a7dc00defe240b2d3dcd0069795a32da5fdc05aa4d56fd8d20dc17f83
BLAKE2b-256 checksum
How to use checksums
ac49443a97bbfb0afcb4815029a09d7880baf8fb9b6b0ff1e8d8ab768b6014cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1

Release files / seismic_attributes-1.0.5-py3-none-any.whl

Download URL seismic_attributes-1.0.5-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32043a935875c4733c15f13ca79d080b87f2961e940356692b4e3a9ce9fb1b57
BLAKE2b-256 checksum
How to use checksums
c9ab74d5cff1d7fa32b6deb74249656105da62d9b1e477f2de4b24d1dc0594ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0

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