https://github.com/fncokg/pymultitaper
Fast easy-to-use multitaper spectrogram and spectrum calculation with Python
https://github.com/fncokg/pymultitaper
digital-signal-processing multitaper python
Last synced: 10 months ago
JSON representation
Fast easy-to-use multitaper spectrogram and spectrum calculation with Python
- Host: GitHub
- URL: https://github.com/fncokg/pymultitaper
- Owner: fncokg
- License: mit
- Created: 2024-08-27T15:00:02.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-08-29T12:51:44.000Z (10 months ago)
- Last Synced: 2025-08-29T18:35:37.871Z (10 months ago)
- Topics: digital-signal-processing, multitaper, python
- Language: Python
- Homepage:
- Size: 2.82 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```python
>>> from pymultitaper import multitaper_spectrogram, plot_spectrogram
>>> from scipy.io import wavfile
>>> fs, data = wavfile.read('test.wav')
>>> freqs,times,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](https://fncokg.github.io/pymultitaper/) for more details.
# Examples

