Skip to content

Fast easy-to-use multitaper spectrogram and spectrum calculation with Python

License

Notifications You must be signed in to change notification settings

fncokg/pymultitaper

Repository files navigation

pymultitaper

pymultitaper is a fast and easy-to-use small package for multitaper spectrogram/spectrum calculation, as well as oridnary (single-taper) spectrogram calculation.

Installation

Install via pip:

pip install pymultitaper

Usage

>>> from pymultitaper import multitaper_spectrogram, plot_spectrogram
>>> from scipy.io import wavfile
>>> fs, data = wavfile.read('test.wav')
>>> times,freqs,psd = multitaper_spectrogram(
...     data, fs,time_step=0.001,window_length=0.005,NW=4
... )
>>> fig,ax = plot_spectrogram(times,freqs,psd,cmap="viridis")

Documentation

Refer to pymultitaper documentation for more details.

Examples

Comparions of multitaper spectrograms

Comparions of multitaper spectrums

About

Fast easy-to-use multitaper spectrogram and spectrum calculation with Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages