Skip to main content

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

Comparions of multitaper spectrograms

Comparions of multitaper spectrums

Project details


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.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymultitaper-1.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pymultitaper-1.1.0.tar.gz.

File metadata

  • Download URL: pymultitaper-1.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pymultitaper-1.1.0.tar.gz
Algorithm Hash digest
SHA256 31b262c0f2ca55841c401f0d4c6be06d91a1677da0d6960d6c9071597d3ee71f
MD5 e86e572bb214f1052df043c2efc44d96
BLAKE2b-256 bed625b3aff4dc18216999137396a7b8488f28275133c3c7930cec4d8768ffba

See more details on using hashes here.

File details

Details for the file pymultitaper-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pymultitaper-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pymultitaper-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2ca0109dd103d09c1cac6e72040cc7b2e37714ba316fdc9a0f445e88dc1e398
MD5 828d906010509b432b6fba99e73a5c47
BLAKE2b-256 90aa9d942506a0b2f8bf6993e7e5ac9efa43c5c5c6b6a43d8e71a56beeb1da34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page