Efficient implementatins of the Konno Ohmachi filter in Python.
Project description
pykooh
Konno Ohmachi filter implemented in Numba.
This code implements Konno-Ohmachi spectral smoothing as defined in:
Konno, K. and Ohmachi, T., 1998. Ground-motion characteristics estimated
from spectral ratio between horizontal and vertical components of
microtremor. Bulletin of the Seismological Society of America, 88(1),
pp.228-241.
This code was originally written for smoothing sub-module in gmprocess by Bruce Worden. Dave Boore has provided notes on this topic, which also may be of interest. Notes regarding the characteristics of the Konno-Ohmachi filter and the implementation are provided in the implementation Jupyter Notebook.
Installation
pykooh
is available via pip
and can be installed with:
pip install pykooh
By default, pykooh
uses numba
for the fast implementation of the
filter. Performance can be increased by using cython
, but this
requires a C complier. If a C compiler is available, install cython
required dependencies with:
pip install pykooh[cython]
Usage
Smooth a signal using a bandwith of 30.
import pykooh
signal_smooth = pykooh.smooth(freqs, freqs_raw, signal_raw, 30)
Additional examples and comparison with obspy
are provided in
example.
Citation
Please cite this software using the following DOI.
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 Distributions
File details
Details for the file pykooh-0.4.0.tar.gz
.
File metadata
- Download URL: pykooh-0.4.0.tar.gz
- Upload date:
- Size: 412.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae22318b92cbef6a810a57a02e90ba22d6fe044e0c6eb65d956339f4bf81c89 |
|
MD5 | 2bf600b31d577fc88d99d65cb3f19b47 |
|
BLAKE2b-256 | c4d214f24ebe683b1aeed84542758fb71a0a50f0c70a1e33c7c31c66cf1caab3 |
File details
Details for the file pykooh-0.4.0-cp312-cp312-manylinux_2_35_x86_64.whl
.
File metadata
- Download URL: pykooh-0.4.0-cp312-cp312-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 6.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76258fd7273d19ebf420abdab04da5f8eb65851b321fae4118671b17e45a8498 |
|
MD5 | e1357adfc4687346348f531df366da14 |
|
BLAKE2b-256 | 61cf201309af9faf78ed07704b998405eb64da586812dfba14021a3f180e2255 |
File details
Details for the file pykooh-0.4.0-cp311-cp311-manylinux_2_39_x86_64.whl
.
File metadata
- Download URL: pykooh-0.4.0-cp311-cp311-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 6.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d226fe6c29d7de2bfcc5f5f55012ee9c7dc65800c05638aa0bfcf70847799b5a |
|
MD5 | 16084c96ce7e8ab0fb283b998935aabf |
|
BLAKE2b-256 | 7cd27605536c01056ffc5b03ed7963a4e5c68495cd391c47c75ec204e7a61e44 |