Skip to main content

A Python package for Wilson-Daubechies-Meyer (WDM) wavelet from coherentWaveBurst

Project description

WDM wavelet transform

This package hosts the python version of WDM wavelet used in coherentWaveBurst(cWB) search.

Installation

pip install wdm-wavelet

Example

Generate a timeseries waveform

from pycbc.waveform import get_td_waveform
import matplotlib.pyplot as plt

hp, hc = get_td_waveform(approximant="IMRPhenomTPHM",
                         mass1=20,
                         mass2=20,
                         spin1z=0.9,
                         spin2z=0.4,
                         inclination=1.23,
                         coa_phase=2.45,
                         distance=100,
                         delta_t=1.0/2048,
                         f_lower=20)

Apply WDM wavelet transform

from wdm_wavelet.wdm import WDM

wdm = WDM(32, 64, 6, 10, backend="jax")  # or backend="numba"

tf_map = wdm.t2w(hp)

tf_map.plot_energy()

Inverse WDM wavelet transform

ts = wdm.w2t(tf_map)

plt.plot(ts)

Supported class backends: "jax" and "numba".

For more examples, please refer to the example notebook.

API docs

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

wdm_wavelet-0.3.0.tar.gz (660.3 kB view details)

Uploaded Source

File details

Details for the file wdm_wavelet-0.3.0.tar.gz.

File metadata

  • Download URL: wdm_wavelet-0.3.0.tar.gz
  • Upload date:
  • Size: 660.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for wdm_wavelet-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6681ea7bcce6e46d817eea8c0653b9730146aa500dc333449d4183675d27ba69
MD5 160f32b24979578c174c3f85a9548733
BLAKE2b-256 fde0e499c068ab585040355901ec8da99482091f390a8e7eb78a3c8c6519bb7e

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