Fast easy-to-use multitaper spectrogram and spectrum calculation with Python
Project description
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
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
pymultitaper-1.0.3.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for pymultitaper-1.0.3-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 8f4bcf99de2cd4c74b0890f81b1e3afdc26f7bb616c26f5574679683f14ad20a |
|
| MD5 | c983409aae4b98ce4f20f1174cf21aa7 |
|
| BLAKE2b-256 | 09192202ba55aec12ed8faad616cf377c9f165ec5dec5974214c89fdd7894176 |