Skip to main content

A Python package for gravitational wave burst waveform

Project description

Burst waveform

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

Installation 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.3.0.tar.gz (157.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for burst_waveform-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7793ada1cd3e6a70c683c91656e8fd0201eccdf38d95dd93ab1b3c90b95e453d
MD5 8baa84bbeedbb66b6f1cd4d0a5d83af9
BLAKE2b-256 9d4f8b33c3d28f58f08f0a213111985e39e0427725efb46c8af75103a42d6002

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