Skip to main content

Filter-Picker

DOI Travis (.org) Documentation Status

AUTHOR: Matteo Bagagli

VERSION: 1.1.0

DATE: 05/2022


FilterPicker is a general purpose, broad-band, phase detector and picker which is applicable to real-time seismic monitoring and earthquake early-warning. This module is a Python implementation of the A.Lomax Filter Picker and has has been rewritten using NumPy libraries. For a full method description the reader is referred to the main authors paper.

If you make use of this package, please consider citing* it with the provided DOI. Thanks :)

@misc{mbagagli_2019_3609025,
    author       = {Matteo Bagagli},
    title        = {filterpicker: general purpose, broad-band, phase detector and picker},
    month        = Nov,
    year         = 2019,
    doi          = {10.5281/zenodo.3609025},
    version      = {1.0.3},
    publisher    = {Zenodo},
    url          = {https://doi.org/10.5281/zenodo.3609025}
    }

Installation

PyPI

The package has been uploaded in PyPI repository. For the stable releases you could just type:

pip install filterpicker  # (latest 1.1.0)

and be ready to go. If you want all the newest features and bugfix, please fork the project or clone it locally (see below the manual installation procedures).

Please note that PyPI releases don't support Python=3.5. If you would like to have it, download the GitHub release v1.0.5.

Since version v1.1.0 the support for Python=3.5 has been dropped! All commits are always tested on CI to ensure stability over releases.

Manual installation and contribution

If you want to install the library manually or just being updated to the latest patches, the installation is pretty easy because the package comes with an installer. All the dependencies are explained in the requirements.txt file. It is still recommended, though, to use a virtual environment (conda or pipenv)

Just open a terminal and type

$ git clone https://github.com/billy4all/filterpicker /somwhere/in/my/pc
$ cd where/you/cloned
$ # optionally activate your virtual env
$ pip install .
$ pytest  # to double-check the correct installation (need to install pytest first)

For contributions (that are very welcome), please use the DEVELOP branch as the upstream one.

How to

If you did install manually the package you can try the software by running the scripts in the example folder (manual installation).

Although being used mostly as a seismic phase-picker, this software is a great transient detector that could come handy for other time-series analysis as well. For this reason, I tried to mantain the library dependencies as clean as possible (only numpy and matplotlib). In fact, in order to work the software needs only a numpy.array and a sampling time.

From v1.1.0 I provide a python wrapper for seismic-phases picking: bin/run_filter_picker.py. The script can be called from commandline and comes with an helper (run_filter_picker.py --help) n order to work, the scripts needs to have the ObsPy library installed in order to handle the I/O operations. Example usage:

$ run_filter_picker.py OBSPY-STREAM-PATH -p 0.20  1.0  0.1  5  10  2 -x bp 2 1 30 --plot

For any issues bug reports, the use of the GitHub issues panel is preferred. Otherwise, send an email to the maintainer.

References

  • Lomax, A., C. Satriano and M. Vassallo (2012), Automatic picker developments and optimization: FilterPicker - a robust, broadband picker for real-time seismic monitoring and earthquake early-warning, Seism. Res. Lett. , 83, 531-540, doi: 10.1785/gssrl.83.3.531.

  • Vassallo, M., C. Satriano and A. Lomax, (2012), Automatic picker developments and optimization: A strategy for improving the performances of automatic phase pickers, Seism. Res. Lett. , 83, 541-554, doi: 10.1785/gssrl.83.3.541.

  • MATLAB package

Metadata

Release files for filterpicker 1.1.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 filterpicker 1.1.0
File Size Uploaded Provenance Actions
filterpicker-1.1.0.tar.gz 59.0 kB Without provenance Details for filterpicker-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 70.8 kB

Release files / filterpicker-1.1.0.tar.gz

Download URL filterpicker-1.1.0.tar.gz
Size 59.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fd8b5fbabe8a3f5dcbb5497ac3b539fe87d1a6a5e9462b5ebf121fe964d9f6b2
BLAKE2b-256 checksum
How to use checksums
99d6ef618fbf67e1f93059297a604be53bf150b7cd9bd30db94418ebcda7e516
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / filterpicker-1.1.0-py3-none-any.whl

Download URL filterpicker-1.1.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95444784301d68105a605944bece90107b98f9abc1874c8d2c41683871ce4645
BLAKE2b-256 checksum
How to use checksums
9177f100b56119a2ee6dd993179e4b45da77e5d9f9d19a452579bc17fcea004e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for filterpicker 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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