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)

tf_map = wdm.t2w(hp)

tf_map.plot_energy()

Inverse WDM wavelet transform

ts = wdm.w2t(tf_map)

plt.plot(ts)

For more examples, please refer to the example notebook.

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

Uploaded Source

File details

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

File metadata

  • Download URL: wdm_wavelet-0.2.2.tar.gz
  • Upload date:
  • Size: 268.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for wdm_wavelet-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3f5f4d9dfff103fd3572d636d8825f2b9893813e5cafe2e017322fcefec62a66
MD5 eaccd3d683f55bc1ebc6f5185f5fc08d
BLAKE2b-256 2cd4d8eec145dad9d2b69d7e8ddd7af03efc7e412ec197d0e98c8f1c86f71549

See more details on using hashes here.

Supported by

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