burst-waveform


Nameburst-waveform JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://git.ligo.org/yumeng.xu/setup.py
SummaryA Python package for gravitational wave burst waveform
upload_time2024-04-26 12:42:17
maintainerNone
docs_urlNone
authorYumeng Xu
requires_python>=3.8
licenseNone
keywords ligo sine-gaussian white noise burst gravitational waves burst waveform model
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Burst waveform

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

## Installation from source

```bash
make install
```

## Usage

The `Burst-Waveform` package provides three burst waveform models: `SineGaussian`, `SineGaussianQ`,
and `WhiteNoiseBurst`

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,

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

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

model = SineGaussianQ(params)
t, strain = model()

plt.plot(t, strain)
plt.show()
```

For `WhiteNoiseBurst` waveform,

```python
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)
t, wnb = WNB()

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://git.ligo.org/yumeng.xu/setup.py",
    "name": "burst-waveform",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "ligo, sine-gaussian, white noise burst, gravitational waves, burst, waveform model",
    "author": "Yumeng Xu",
    "author_email": "The PycWB team <yumeng.xu@ligo.org>",
    "download_url": "https://files.pythonhosted.org/packages/a8/06/6f6ecad773372df671dad83c906dfd4cd5a335854409220b45b3e5d65f5f/burst_waveform-0.2.3.tar.gz",
    "platform": null,
    "description": "# Burst waveform\n\nThis package hosts the python version of the burst waveform used in coherentWaveBurst(cWB) search.\n\n## Installation from source\n\n```bash\nmake install\n```\n\n## Usage\n\nThe `Burst-Waveform` package provides three burst waveform models: `SineGaussian`, `SineGaussianQ`,\nand `WhiteNoiseBurst`\n\nThe waveforms can be generated by calling the instance of the waveform model after initializing it with the desired\nparameters.\n\nFor example, to generate a `SineGaussianQ` waveform,\n\n```python\nfrom burst_waveform.models import SineGaussianQ\nfrom matplotlib import pyplot as plt\n\nparams = {\n    \"amplitude\": 1.0,\n    \"frequency\": 300.0,\n    \"Q\": 9\n}\n\nmodel = SineGaussianQ(params)\nt, strain = model()\n\nplt.plot(t, strain)\nplt.show()\n```\n\nFor `WhiteNoiseBurst` waveform,\n\n```python\nfrom burst_waveform.models import WhiteNoiseBurst\nimport matplotlib.pyplot as plt\n\nparams = {\n    'frequency': 300,\n    'bandwidth': 50,\n    'duration': 0.005,\n    'inj_length': 1,\n    'mode': 1\n}\n\nWNB = WhiteNoiseBurst(params)\nt, wnb = WNB()\n\nplt.plot(t, wnb)\nplt.xlim(0.5 - 10 * params['duration'], 0.5 + 10 * params['duration'])\nplt.show()\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package for gravitational wave burst waveform",
    "version": "0.2.3",
    "project_urls": {
        "Homepage": "https://git.ligo.org/yumeng.xu/setup.py"
    },
    "split_keywords": [
        "ligo",
        " sine-gaussian",
        " white noise burst",
        " gravitational waves",
        " burst",
        " waveform model"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a8066f6ecad773372df671dad83c906dfd4cd5a335854409220b45b3e5d65f5f",
                "md5": "079b708052c0848bbab16b884fae3b32",
                "sha256": "f66eb1fc6a76611712a13771dac358169fd5f0a4a178275468a999058e6c8a46"
            },
            "downloads": -1,
            "filename": "burst_waveform-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "079b708052c0848bbab16b884fae3b32",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 116171,
            "upload_time": "2024-04-26T12:42:17",
            "upload_time_iso_8601": "2024-04-26T12:42:17.919221Z",
            "url": "https://files.pythonhosted.org/packages/a8/06/6f6ecad773372df671dad83c906dfd4cd5a335854409220b45b3e5d65f5f/burst_waveform-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-26 12:42:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "burst-waveform"
}
        
Elapsed time: 0.24869s