This release is a pre-release and may not be stable for production use.
SPAR4DAS — early source-spectrum component
SPAR4DAS is developed by Mariano Supino for seismic source parameter estimation from distributed acoustic sensing (DAS) records. This small alpha release provides one usable component: the generalized Brune source-spectrum calculation used by SPAR. The full inversion software is still in development and is not included in this distribution.
Install and use
python -m pip install --pre spar4das
import numpy as np
from spar4das 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 convert raw strain or strain-rate measurements to moment, read waveform files, or estimate parameters. The alpha API may change as the complete SPAR4DAS package is developed.
License
GNU General Public License version 3 only; see LICENSE.
Metadata
Release files for spar4das 0.0.1a1
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 |
|---|---|---|---|---|
| spar4das-0.0.1a1.tar.gz | 14.8 kB | Without provenance | Details for spar4das-0.0.1a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spar4das-0.0.1a1-py3-none-any.whl | Python 3 | none | any | Details for spar4das-0.0.1a1-py3-none-any.whl |
Total release size: 29.8 kB
Release files / spar4das-0.0.1a1.tar.gz
| Download URL | spar4das-0.0.1a1.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1998a146d3b4a00ed6509a203ad42daee7a9bc93c7010f902e6cfc8d25b9917c
|
|
BLAKE2b-256 checksum How to use checksums |
792cb8223747cb2dec0d30c7afb5a70a00db1330b40689b6796ce2119dee628d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / spar4das-0.0.1a1-py3-none-any.whl
| Download URL | spar4das-0.0.1a1-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f33367e7b6aa174fa5ae60be873d75bdb641759ff0fc1fe00d929acdc26df05a
|
|
BLAKE2b-256 checksum How to use checksums |
bfc6732de2f32001ad7e8d5565e22d9f4783a38b04ac0c3cbf528d4762065764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for spar4das 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.