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

Uploaded Source

File details

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

File metadata

  • Download URL: wdm_wavelet-0.3.1.tar.gz
  • Upload date:
  • Size: 664.2 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.1.tar.gz
Algorithm Hash digest
SHA256 37762668475b99463bfbaa567fa50542e20b2b67aa0dd757eac2122fa56b651b
MD5 5197abe34de63e041ab9053a4ce0fbbd
BLAKE2b-256 bb795c35e92d299fd04ef478245f3af559b728271534366f3ab3d4fa9f1afb1d

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