Skip to main content

Calculate amplitude spectra of seismic signals

Project description

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 parameter b.
  • koc_smoothing(lfreq, famps, amps, b=40.0): Smooths the spectrum with compensation for shift using the Konno-Ohmachi method.

Note

  1. 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 sensitivity removing 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. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipeutils_akmich-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipeutils_akmich-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file ipeutils_akmich-0.1.1.tar.gz.

File metadata

  • Download URL: ipeutils_akmich-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for ipeutils_akmich-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d2a8d0c636da291a15b0bca28a4879ac32fcb7d39915196ec44e1f1513f16fc
MD5 0fce62a711b1678b487329c13728b59c
BLAKE2b-256 16cdf509b9b00f51a47103b19ee472749b457a8bc39b47aff49fcbf5a7d5e405

See more details on using hashes here.

File details

Details for the file ipeutils_akmich-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ipeutils_akmich-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f819c0693885996f12806cf4c3036a05b94d4bf1954151d78fd8e10c9590642
MD5 ee15921b7a385f0592811588b07d50f1
BLAKE2b-256 b65b18f1d2855973c594019dfce6f3dfe238963772b92e9a1c9c21a053d320bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page