Requake
Repeating earthquakes search and analysis.
Copyright (c) 2021-2026 Claudio Satriano satriano@ipgp.fr
Description
Requake is a command line tool to search and analyse repeating earthquakes.
It can either scan an existing earthquake catalog to search for similar events, or perform template matching on a continuous waveform stream.
Catalogs and waveforms can be read from local files or downloaded using standard FDSN web services.
Requake is written in Python and uses ObsPy as backend.
Installation
Installing the latest release
Using Anaconda
The following command will automatically create an Anaconda environment
named requake, install the required packages and install the latest
version of SourceSpec via pip:
conda env create --file https://raw.githubusercontent.com/SeismicSource/requake/main/requake_conda_env.yml
If you want a different name for your environment, use:
conda env create -n YOUR_ENV_NAME --file https://raw.githubusercontent.com/SeismicSource/requake/main/requake_conda_env.yml
Activate the environment with:
conda activate requake
(or conda activate YOUR_ENV_NAME)
To keep Requake updated run the following command from within the environment:
pip install --upgrade requake
Or, to switch to a development snapshot, run:
pip install git+https://github.com/SeismicSource/requake.git
Using pip and PyPI
The latest release of Requake is available on the Python Package Index.
You can install it easily through pip:
pip install requake
Installing a development snapshot
If you need a recent feature that is not in the latest release (see the
unreleased section in CHANGELOG), you want to use the more
recent development snapshot from the Requake GitHub repository.
Using pip
The easiest way to install the most recent development snapshot is to download
and install it through pip, using its builtin git client:
pip install git+https://github.com/SeismicSource/requake.git
Run this command again, from times to times, to keep Requake updated with the development version.
Cloning the Requake GitHub repository
If you want to take a look at the source code (and possibly modify it 😉),
clone the project using git:
git clone https://github.com/SeismicSource/requake.git
or, using SSH:
git clone git@github.com:SeismicSource/requake.git
(avoid using the "Download ZIP" option from the green "Code" button, since version number is lost).
Then, go into the requake main directory and install the code in "editable
mode" by running:
pip install -e .
You can keep your local Requake repository updated by running git pull
from times to times. Thanks to pip's "editable mode", you don't need to
reinstall Requake after each update.
If you want the repository style rules to run locally before each commit, enable the included git hook once per clone:
scripts/setup_local_hooks.sh
You can also run the local style checks manually with:
scripts/check_style.sh
Running
Command line arguments
Requake is based on a single executable, aptly named requake 😉.
To get help, use:
requake -h
Different commands are available; each one is a verb followed by the object it acts on:
config write or update the configuration file
read read an event catalog into the output database
scan search for similar events in catalogs and waveforms
build build event families or waveform templates
print print the catalog, event pairs or families to screen
list list the stored catalogs, scans and family builds
plot plot event pairs, families and maps
edit change the label of a stored entry or flag a family
delete delete a catalog, a catalog scan or a family build
wfcache manage the persistent waveform cache
Typing a verb alone, as in requake plot, lists the objects it can act on;
use -h after an object (e.g., requake plot pair -h) to get the options of
that command.
Requake supports command line tab completion for commands and arguments, thanks to argcomplete. To enable command line tab completion run:
activate-global-python-argcomplete
(This is a one-time command that needs to be run only once).
Or, alternatively, add the following line to your .bashrc or .zshrc:
eval "$(register-python-argcomplete requake)"
Typical workflow
The first thing you will want to do is to generate a sample config file:
requake config sample
Edit the config file according to your needs, then read or download the event catalog:
requake read fdsn
or
requake read file CATALOG_FILE
Now, build the catalog of event pairs with:
requake scan catalog
When relying on FDSN web services for waveform data, it is strongly recommended to prefetch all waveform windows before running the scan. This downloads every required waveform once and stores it in a local SQLite cache, avoiding repeated downloads and dramatically reducing overall runtime for large catalogs:
requake wfcache prefetch
Once done (it will take time!), you are ready to build repeating earthquake families:
requake build families
Performances
-
requake scan catalogis designed to fully utilize available CPU cores by processing earthquake pairs in parallel. Its runtime grows with the number of event pairs withincatalog_search_range, and retrieving the waveforms dominates the cost of each pair. -
For reference, a scan of a catalog of 92,947 events, with 462 million candidate pairs, took 82 hours (3.4 days) on a single 64-core node of a SLURM cluster, with the waveforms already in the on-disk cache: about 1,570 pairs/s, or 5.7 million pairs per hour. See the performances page for the details.
-
On an M2 MacBook Air, scanning 95,034 earthquake pairs downloaded via FDSNWS took approximately 5 minutes using 7 worker processes, yielding ~19,000 pairs per minute. When repeating the same scan with a fully cached set of waveforms, runtime dropped to 84 seconds (~68,000 pairs per minute).
-
For large FDSN-based runs, use
requake wfcache prefetchbeforerequake scan catalogto download all waveforms upfront into a local SQLite cache. This eliminates repeated downloads, lets the scan read exclusively from disk, and is the single most effective way to speed up catalog scanning. -
requake build familiesis fast™.
How to Cite
If you used Requake for a scientific paper, please cite it as:
Satriano, C. (2026). Requake: Repeating earthquakes search and analysis (X.Y). doi: 10.5281/ZENODO.10832203
Please replace X.Y with the Requake version number you used.
You can also cite the following abstract presented at the 2021 AGU Fall Meeting:
Satriano, C., Doucet, A. & Bouin, M.-P. (2021). Probing the creep rate along the Lesser Antilles Subduction Zone through repeating earthquakes. In AGU Fall Meeting Abstracts (Vol. 2021, pp. T25A-0167), bibcode: 2021AGUFM.T25A0167S
Metadata
Release files for requake 0.8.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| requake-0.8.5.tar.gz | 231.3 kB | With provenance | Details for requake-0.8.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| requake-0.8.5-py3-none-any.whl | Python 3 | none | any | Details for requake-0.8.5-py3-none-any.whl |
Total release size: 510.4 kB
Release files / requake-0.8.5.tar.gz
| Download URL | requake-0.8.5.tar.gz |
|---|---|
| Size | 231.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8b8e9597c376d400017ab0fd509794e4b3ceace07129d81690b11599227b71c
|
|
BLAKE2b-256 checksum How to use checksums |
245081981610bc999652f566fa37ede5c2374cf916c7c117b189de56cb5fb2c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / requake-0.8.5-py3-none-any.whl
| Download URL | requake-0.8.5-py3-none-any.whl |
|---|---|
| Size | 279.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89db12e7dd36301b14cc0029885dfcb6ac0d927b0a0c75320be8a0783f2e1261
|
|
BLAKE2b-256 checksum How to use checksums |
32fe47c932691ade57a0f2f5e9c5144b1338bd5504795604d413e45a0812fd23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for requake 0.8.5
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for requake-0.8.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA 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.