Skip to main content

Earthquake source parameters from S-wave displacement spectra

Project description

SourceSpec

Earthquake source parameters from S-wave displacement spectra

DOI

(c) 2011-2022 Claudio Satriano satriano@ipgp.fr

Description

The SourceSpec package is made of three codes:

  • source_spec
  • source_model
  • source_residuals

The code computes spectra of the two horizontal components (and optionally of the vertical component, as well), and then modulus as:

sqrt(c1(w)^2+c2(w)^2)

It then inverts spectra for a 3-parameter model (Mw, Fc, t﹡ = T/Qs) using initial values for Mw, fc and t﹡:

log S(w)= log(coeff*Mo) + log((1/(1+(w/wc)^2)) + log(exp(-w*t_star/2))

It plots observed and inverted spectra on a single log-log graph (Mo vs log-frequency). Computes average and standard deviation of Mw, Mo, fc, t*, source radius and Brune stress drop.

To get help:

source_spec -h
source_model -h
source_residuals -h

Installation

Using pip and PyPI (preferred method)

The latest release of SourceSpec is available on the Python Package Index.

You can install it easily through pip:

pip install sourcespec

From SourceSpec GitHub releases

Download the latest release from the releases page, in zip or tar.gz format, then:

pip install sourcespec-X.Y.zip

or

pip install sourcespec-X.Y.tar.gz

Where, X.Y is the version number (e.g., 1.2). You don't need to uncompress the release files yourself.

From SourceSpec GitHub repository

If you need a recent feature that is not in the latest release (see the unreleased section in CHANGELOG), you want to use the source code from the SourceSpec GitHub repository.

For that, clone the project:

git clone https://github.com/SeismicSource/sourcespec.git

(avoid using the "Download ZIP" option from the green "Code" button, since version number is lost), then install the code from within the sourcespec main directory by running:

pip install .

Documentation

A very incomplete documentation can be found at sourcespec.readthedocs.io.

Sample runs

Several sample runs are available in the sourcespec_testruns repository.

How to cite

If you used SourceSpec for a scientific paper, please cite it as:

Satriano, C. (2022). SourceSpec – Earthquake source parameters from S-wave displacement spectra (X.Y). https://doi.org/10.5281/ZENODO.3688587

Please replace X.Y with the SourceSpec version number you used.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sourcespec-1.5.tar.gz (150.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sourcespec-1.5-py3-none-any.whl (149.8 kB view details)

Uploaded Python 3

File details

Details for the file sourcespec-1.5.tar.gz.

File metadata

  • Download URL: sourcespec-1.5.tar.gz
  • Upload date:
  • Size: 150.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for sourcespec-1.5.tar.gz
Algorithm Hash digest
SHA256 b23843e9098ea7032f5cffc7d7f41bc30f1c6ad71bb4d145c641840da87a1e39
MD5 508da10398e88c49b85131d7755661f9
BLAKE2b-256 b7cbd31233ca8eb0ff416bb01d53d03dcdcbcd58f961f7941961de88274ec734

See more details on using hashes here.

File details

Details for the file sourcespec-1.5-py3-none-any.whl.

File metadata

  • Download URL: sourcespec-1.5-py3-none-any.whl
  • Upload date:
  • Size: 149.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for sourcespec-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 060b6353cfc97ee48c500c776331cdf282c0012ab739eb06913597dc1c417864
MD5 782aeb78603d8b834570ad25c6b3972f
BLAKE2b-256 7ff49fb8d64c52143f889db042c9342363ead4d42494c4ec323771884441bc55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page