Skip to main content

Gravitational waveforms and snr.

Project description

gwsnrcalc is a package designed for fast signal-to-noise ratio (SNR) calculations for single gravitational wave sources using a matched filtering SNR approach. It was originally designed to support BOWIE for Evaluating Black Hole Detectability with LISA (arXiv:1807.02511). It provides a fast SNR calculator, frequency-domain amplitude waveforms for binary black holes, and a SNR grid generator for binary black holes.

The main snr function is gwsnrcalc.gw_snr_calculator.snr. It has the capability to perform calculations in parallel across processors for faster calculation.

The waveform generator (gwsnrcalc.utils.waveforms) creates either circular or eccentric waveforms.

Circular waveforms are created with PhenomD amplitude waveforms for binary black hole inspiral, merger, and ringdown. PhenomD is from Husa et al 2016 (arXiv:1508.07250) and Khan et al 2016 (arXiv:1508.07253). The current waveforms returned are in units of characteristic strain.

Eccentric waveforms are generated according to Peters evolution only for the inspiral phase.

The snr grid generator: gwsnrcalc.generate_contour_data uses gwsnrcalc.gw_snr_calculator.snr to create SNR grids for contour plots (like those used in BOWIE).

Available via pip and on github: https://github.com/mikekatz04/BOWIE/

Getting Started

These instructions will get you a copy of the project up and running on your local machine for usage and testing purposes.

Prerequisites

Software installation/usage only requires a few specific libraries in python. All libraries are included with Anaconda. If you do not run python in an anaconda environment, you will need the following libraries and modules to run with all capabilities: Numpy, Scipy, collections, sys, json, multiprocessing, datetime, time, astropy, and h5py. All can be installed with pip. For example, within your python environment of choice:

pip install astropy

In order to properly create waveforms with ctypes, you will need complex, gsl, and math c libraries. For installing gsl, refer to https://www.gnu.org/software/gsl/ or install it through anaconda.

Installation

Installation is done two ways:

  1. using pip

pip install gwsnrcalc

This will download the all necessary packages to your current environment. It will not download the notebooks for testing and example usage.

  1. Clone the git repo on the command line, or downloading it from github. This is for all the modules, example jupyter notebooks, and extra files. This method will include BOWIE. To just download specific files that do not come with pip (e.g. jupyter notebook with examples), just download the files from the github.

  1. navigate to the directory of your choice.

  2. clone the git repo on the command line.

git clone https://github.com/mikekatz04/BOWIE.git

  1. run setup.py to add the modules to your environment and compile the c codes.

python ./setup.py install

Testing and Running an Example

To test the codes, you run the guide notebook.

jupyter notebook pyphenomd_guide.ipynb

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

Current version is 1.0.0.

We use SemVer for versioning.

Authors

Please email the author with any bugs or requests.

License

This project is licensed under the GNU License - see the LICENSE.md file for details.

Acknowledgments

  • Thanks to Michael Puerrer, Sebastian Khan, Frank Ohme, Ofek Birnholtz, Lionel London for authorship of the original c code for PhenomD within LALsuite.

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

gwsnrcalc-1.0.0.tar.gz (7.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gwsnrcalc-1.0.0-cp35-cp35m-macosx_10_6_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

File details

Details for the file gwsnrcalc-1.0.0.tar.gz.

File metadata

  • Download URL: gwsnrcalc-1.0.0.tar.gz
  • Upload date:
  • Size: 7.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.5

File hashes

Hashes for gwsnrcalc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4999928170b021e3f5c9660bc074eec4515ce8b0479c7671117d54f0421dbf06
MD5 a5359ef8932672ed77f424bde53b5acb
BLAKE2b-256 d86dcd0b0d74c3e868a7016beafca041ed2ca5114fba137e64dd48cebdcb90e7

See more details on using hashes here.

File details

Details for the file gwsnrcalc-1.0.0-cp35-cp35m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: gwsnrcalc-1.0.0-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 7.5 MB
  • Tags: CPython 3.5m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.5

File hashes

Hashes for gwsnrcalc-1.0.0-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 9f31a12599c0746bf89af7ef6b3587b01bee32d4f8654770df2f2eb79adc063b
MD5 9536961f38996025d5a3b51798b9dc62
BLAKE2b-256 9f8ed2ed181a8ba2314f3abe4cac2af55870b8955ff1078654d4d11935f57db5

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