Calculation of amplitude spectra of seismic signals. Part of the 'ipeutils' collection of utilities for processing seismic data at the Institute of Physics of the Earth, Masaryk University.
Project description
akmich - Amplitude Spectral Characteristics
AKMICH - Amplitudová KMItočtová CHarakteristika
This module provides functions for calculating amplitude spectral characteristics of seismic signals, such as Fourier Amplitude Spectrum (FAS) and Amplitude Spectral Density (ASD). It also includes functions for smoothing the spectra using the Konno-Ohmachi method.
Functions
FAS(data, delta): Calculates the Fourier Amplitude Spectrum (FAS) of a 1D data vector with a given sampling interval.ASD(data, delta): Calculates the Amplitude Spectral Density (ASD) of a 1D data vector with a given sampling interval.CSD(data1, data2, delta): Calculates the Cross Spectral Density (CSD) between two 1D data vectors with a given sampling interval.trFAS(tr): Calculates the FAS from an ObsPy Trace object.trASD(tr): Calculates the ASD from an ObsPy Trace object.ko_smoothing(lfreq, famps, amps, b=40.0): Smooths the spectrum using the Konno-Ohmachi method with a specified smoothing parameterb.koc_smoothing(lfreq, famps, amps, b=40.0): Smooths the spectrum with compensation for shift using the Konno-Ohmachi method.
Note
Consider that the trFAS and trASD functions multiply the signal samples by the Trace.stats.calib value before calculating the spectra. Make sure calib has the correct value (calib = 1.0 if calibration has been done before).
If you want to calculate the spectra without this calibration, you can directly use the FAS and ASD functions with the raw data from the Trace object.
Usage
To use the functions in this module, you can import it and call the desired function with the appropriate parameters. For example:
from ipeutils.akmich import FAS, ASD, trFAS, trASD, ko_smoothing, koc_smoothing
Make sure to have the ObsPy library installed to work with Trace objects. You can install it using pip:
pip install obspy
License
This module is provided under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ipeutils_akmich-0.1.0.tar.gz.
File metadata
- Download URL: ipeutils_akmich-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baeed02b143b3dfc80be3895c7ae7622deb47c95277381eecf20a62499af9bf3
|
|
| MD5 |
f57e94529b11cf920cf58f746df8d602
|
|
| BLAKE2b-256 |
0b7b1e9a528b390b454be17708d3e785f4c4536a9fc23167bf8d68cfc5a54dce
|
File details
Details for the file ipeutils_akmich-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ipeutils_akmich-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b67528d7753bb227b0d3c8498303f3382e0a7298b4853a3930ce3f90ed254d1b
|
|
| MD5 |
20a333cbdd8966cc38e1a8eb3aad0dd3
|
|
| BLAKE2b-256 |
1cc1df1049e08a017eb6f1e8aa7990195ce1bcd885f332f0ae3e1094cfb67502
|