Skip to main content

A Python package for gravitational wave burst waveform

Project description

Burst waveform

Build Status PyPI version License

This package hosts the python version of the burst waveform used in coherentWaveBurst(cWB) search.

Installation

Using pip

pip install burst-waveform

from source

make install

Usage

The Burst-Waveform package provides four burst waveform models: SineGaussian, SineGaussianQ, WhiteNoiseBurst, and Ringdown.

The waveforms can be generated by calling the instance of the waveform model after initializing it with the desired parameters.

For example, to generate a SineGaussianQ waveform,

from burst_waveform.models import SineGaussianQ
from matplotlib import pyplot as plt

params = {
    "amplitude": 1.0,
    "frequency": 300.0,
    "Q": 9
}

model = SineGaussianQ(params)
strain = model()

plt.plot(strain)
plt.show()

For WhiteNoiseBurst waveform,

from burst_waveform.models import WhiteNoiseBurst
import matplotlib.pyplot as plt

params = {
    'frequency': 300,
    'bandwidth': 50,
    'duration': 0.005,
    'inj_length': 1,
    'mode': 1
}

WNB = WhiteNoiseBurst(params)
wnb_strain = WNB()

plt.plot(wnb_strain)
plt.xlim(0.5 - 10 * params['duration'], 0.5 + 10 * params['duration'])
plt.show()

For Ringdown waveform,

from burst_waveform.models import Ringdown
from matplotlib import pyplot as plt

params = {
    "tau": 0.3,
    "frequency": 10.0,
    "iota": 90.0,
}

model = Ringdown(params)
hp, hc = model()

plt.plot(hp)
plt.plot(hc)
plt.show()

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

burst_waveform-0.4.1.tar.gz (1.6 MB view details)

Uploaded Source

File details

Details for the file burst_waveform-0.4.1.tar.gz.

File metadata

  • Download URL: burst_waveform-0.4.1.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for burst_waveform-0.4.1.tar.gz
Algorithm Hash digest
SHA256 5e3571579ef5fc480daf1e434abc513b80467881d5dc3514e59a8158eda34c61
MD5 c32557e6c6f2a437c46054daa6f660cd
BLAKE2b-256 1523bd0bc7e65bf3984558d4bd2c8a44b9fe62385f36880854c7b9cef6cdd2a8

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