akmich - Amplitude Spectra
AKMICH - Amplitudová KMItočtová CHarakteristika
This module provides functions for calculating amplitude spectra 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.
The AKMICH module is part of the 'ipeutils' collection of utilities for processing seismic data at the Institute of Physics of the Earth, Masaryk University.
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
trFASandtrASDfunctions multiply the signal samples by theTrace.stats.calibvalue before calculating the spectra. Make surecalibhas the correct value(calib = 1.0if sensitivity removing has been done before). If you want to calculate the spectra without this calibration, you can directly use theFASandASDfunctions with the raw data from the Trace object. 2.The FAS, ASD, and CSD functions return a vector of frequencies without a zero frequency and return the corresponding amplitude values.
Usage
Import the required functions. For example:
from ipeutils.akmich import FAS, ASD, trFAS, trASD, ko_smoothing, koc_smoothing
Example of calculating the ASD from a Trace object: https://github.com/ipemu/ipeutils/tree/master/akmich/examples/example_ASD.py
Installation
To work with Trace objects, it requires the ObsPy library, so install it in the obspy environment.
Module akmich can be installed using pip:
pip install ipeutils-akmich --upgrade
Metadata
Release files for ipeutils-akmich 0.1.3
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_akmich-0.1.3.tar.gz | 4.5 kB | Without provenance | Details for ipeutils_akmich-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipeutils_akmich-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for ipeutils_akmich-0.1.3-py3-none-any.whl |
Total release size: 9.0 kB
Release files / ipeutils_akmich-0.1.3.tar.gz
| Download URL | ipeutils_akmich-0.1.3.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23d9dcc103489d1ccda4dfaed489161a7ae323b5a4d09aa20efddf4165086718
|
|
BLAKE2b-256 checksum How to use checksums |
add433e93cd3570dbcdaa53074d0fd66709b186c24ac0016243de4ed73f67ebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / ipeutils_akmich-0.1.3-py3-none-any.whl
| Download URL | ipeutils_akmich-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5418c1f23a3aa154fe5a744c4b84ebf983b0489d20127eece2eece6a8cab3ca0
|
|
BLAKE2b-256 checksum How to use checksums |
7a08929960ad617ed83f02b13eaa81e88f8c6ac8fef93de205029a8fde5cce8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for ipeutils-akmich 0.1.3
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.