Site Response Restitution
This module demonstrates how to use site-specific response spectra to deconvolve seismic records. The site response spectrum characterizes the frequency-dependent amplification effect at a given location. We will use it similarly to a transfer function for deconvolution. The site spectrum is described only by its amplitude spectrum, and we do not have the phase spectrum. Here, we will assume the phase spectrum is zero, which means we can expect a similar effect to zero-phase filtering in the restitution process.
The DESR module is part of the 'ipeutils' collection of utilities for processing seismic data at the Institute of Earth Physics of Masaryk University.
Functions
smooth_transition(x, a, b, f_x, lwidth, rwidth): Creates a smooth transition of the functionf_xfrom 1 outside the intervals[a-lwidth, a]and[b, b+rwidth]to the original functionf_xinside the interval[a,b].cDFT(tr): Computes the complex spectrum of the Discrete Fourier Transform (DFT) for a given trace.deconv_site_resp(st, d_ssr, cutoff_freq=None): Deconvolves the site response from a seismic record using the provided site response spectra. Optionally applies a low-pass Butterworth filter to the restitution function.
Usage
- Load the site response spectra from
.npzfiles using theload_freq_geomean(files)function, which extracts frequency and geometric mean arrays and stores them in a dictionary. - Read seismic records using
obspyand apply thedeconv_site_respfunction to deconvolve the site response from the records.
Note
- The module assumes that the site response spectra are available for the stations and components of the seismic records. If not, the original traces will be copied to the output without modification.
- The
DEBUG_PLOTflag can be set toTrueto visualize the site response spectra and the effects of deconvolution for debugging purposes.
Metadata
Release files for ipeutils-desr 0.1.1
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 |
|---|---|---|---|---|
| ipeutils_desr-0.1.1.tar.gz | 5.5 kB | Without provenance | Details for ipeutils_desr-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipeutils_desr-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ipeutils_desr-0.1.1-py3-none-any.whl |
Total release size: 11.2 kB
Release files / ipeutils_desr-0.1.1.tar.gz
| Download URL | ipeutils_desr-0.1.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd49e28e1b36bc102fb692077b12c6a0079e22a5da8e7ddfb7c1e5fd756c4d9b
|
|
BLAKE2b-256 checksum How to use checksums |
ababa6501cc8e2e2a614284c704921de570a16affe73ac1c215690cab8b392d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / ipeutils_desr-0.1.1-py3-none-any.whl
| Download URL | ipeutils_desr-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6dd04eb5493c682f44ff0983968c2c4c9e0de3cdd6db66f22c749c5ed347e4c
|
|
BLAKE2b-256 checksum How to use checksums |
0820f9b49b07bd092b84127e9c8d394c282f575646c8127e5483538c0cc3b008
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for ipeutils-desr 0.1.1
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.