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)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7793ada1cd3e6a70c683c91656e8fd0201eccdf38d95dd93ab1b3c90b95e453d |
|
MD5 | 8baa84bbeedbb66b6f1cd4d0a5d83af9 |
|
BLAKE2b-256 | 9d4f8b33c3d28f58f08f0a213111985e39e0427725efb46c8af75103a42d6002 |