Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SPARspec4DAS — early source-spectrum component

SPAR is developed by Mariano Supino to estimate earthquake source parameters from seismic amplitude spectra. SPARspec4DAS is an early distribution of a small component of this project: its generalized Brune source-spectrum calculation. The full SPAR inversion software is still in development and is not included in this distribution.

This alpha provides the same source-spectrum calculation as the initial spar4das and sparspec alphas, under the sparspec4das Python namespace. The model is relevant to the moment-equivalent spectra used for both conventional instruments and distributed acoustic sensing (DAS).

Install and use

python -m pip install --pre sparspec4das
import numpy as np
from sparspec4das import log_moment_spectrum

frequencies_hz = np.array([0.0, 1.0, 4.0, 10.0])
log_amplitude = log_moment_spectrum(
    frequencies_hz, log_m0=12.7, fc_hz=4.0, gamma=2.0, t_star_s=0.02
)
amplitude_nm = 10.0 ** log_amplitude

The model returns

log10 A(f) = log10 M0 - log10[1 + (f/fc)^gamma] - pi*f*t_star*log10(e)

Here M0 is seismic moment in N m, fc is corner frequency in Hz, gamma is the high-frequency decay exponent, and t_star is effective attenuation time in seconds. For fixed Q it may be specified as travel time divided by Q, plus any separately justified kappa term. All parameters except frequency are scalars. Frequencies must be finite and nonnegative; corner frequency and gamma must be positive; attenuation time must be nonnegative.

This is a moment-equivalent spectral model. It does not read waveform files, convert raw instrument or DAS measurements to moment, or estimate parameters. The alpha API may change as the complete SPAR package is developed.

License

GNU General Public License version 3 only; see LICENSE.

Metadata

Release files for sparspec4das 0.0.1a1

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

Source distribution (sdist)

Source distribution for sparspec4das 0.0.1a1
File Size Uploaded Provenance Actions
sparspec4das-0.0.1a1.tar.gz 14.9 kB Without provenance Details for sparspec4das-0.0.1a1.tar.gz

Built distribution (wheel)

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

Total release size: 30.1 kB

Release files / sparspec4das-0.0.1a1.tar.gz

Download URL sparspec4das-0.0.1a1.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3394f107ae5acc80486912c76416b5a3e2107142b812c6fc904739f9feb34f77
BLAKE2b-256 checksum
How to use checksums
68cc94a8288cf8813eb04cd827121e15d2ff4d579c2a3d927f4301bf7e63327a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / sparspec4das-0.0.1a1-py3-none-any.whl

Download URL sparspec4das-0.0.1a1-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a579a76fea85978acaf97c7d15566ac1634cc10c3a23c07e1dd239ab1dc10c82
BLAKE2b-256 checksum
How to use checksums
ece165064a4732a76eba0e1fb1e9ef88d3354f1f4cade4cb1fe17ed6120cc5ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for sparspec4das 0.0.1a1

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.

Release history Release notifications | RSS feed

This release
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