Skip to main content

Konno Omachi filter implemented in Cython.

Project description

cyko

PyPi Cheese Shop Build Status Code Quality Test Coverage License DOI

Konno Omachi filter implemented in Cython.

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

cyko is available via pip and can be installed with:

pip install cyko

Note that cython and C compiler are required.

Usage

Smooth a signal using a bandwith of 30.

import cyko
signal_smooth = cyko.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.

Revision History

v0.2.5

  • Packaging is hard. MANIFEST is fixed now.

v0.2.4

  • Added History to MANIFEST.

v0.2.3

  • Updated badges.
  • Added tests for example and implemenation notebooks.

v0.2.2

  • Moved Cython to a setup_requires

v0.2.1

  • Fixed packaging issue

v0.2

  • Added calculation of effective amplitude spectrum

v0.1.2

  • Initial release

Project details


Download files

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

Files for cyko, version 0.2.5.2
Filename, size File type Python version Upload date Hashes
Filename, size cyko-0.2.5.2.tar.gz (54.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page