Logo

PIWavelet

Modern Python library for Wavelet Analysis

GitHub Repository

Overview

PIWavelet provides modern tools for signal processing, geophysics, and neuroscience using Continuous Wavelet Transform (CWT) and Wavelet Coherence (WTC).

Installation

Install via pip:

pip install piwavelet

Or directly from source:

pip install git+https://github.com/duducosmos/PIWavelet.git

Main Features

FeatureDescription
CWTTime-frequency decomposition.
CoherenceLocalized correlation between signals.
Phase ArrowsPhase relationship visualization.

Wavelet Coherence Example

import numpy as np
from piwavelet.transforms import wavelet_coherence

# Create signals and compute coherence
result = wavelet_coherence(x, y, dt=0.25)

Visualization Output:

Coherence Example

References

  1. Torrence & Compo (1998). A Practical Guide to Wavelet Analysis.
  2. Grinsted et al. (2004). Application of the cross wavelet transform.