GithubHelp home page GithubHelp logo

sugwg / gw170817-inclination-angle Goto Github PK

View Code? Open in Web Editor NEW
7.0 10.0 3.0 89.64 MB

Measuring the viewing angle of GW170817 with electromagnetic and gravitational waves

Home Page: https://arxiv.org/abs/1804.04179

Jupyter Notebook 100.00%
gw170817 gravitational-waves ligo virgo parameter-estimation astronomy bayesian-inference pycbc

gw170817-inclination-angle's Introduction

Measuring the viewing angle of GW170817 with electromagnetic and gravitational waves

Daniel Finstad1, Soumi De1, Duncan A. Brown1, Edo Berger2, Christopher M. Biwer1,3

1Department of Physics, Syracuse University, Syracuse, NY 13244, USA

2Harvard-Smithsonian Center for Astrophysics, Cambridge, Massachusetts 02139, USA

3Applied Computer Science (CCS-7), Los Alamos National Laboratory, Los Alamos, NM, 87545, USA

License

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License.

Introduction

This notebook is a companion to [Finstad et al., Astrophys. J. Lett. 860 (2018) L2]https://doi.org/10.3847/2041-8213/aac6c1) which is also posted at arxiv:1804.04179. It demonstrates how to read and use our posterior proability density files from the MCMC and shows how to reconstruct Figure 1 in the paper from the raw data.

We encourage use of these data in derivative works. If you use the material provided here, please cite the paper using the reference:

@article{Finstad:2018wid,
      author         = "Finstad, Daniel and De, Soumi and Brown, Duncan A. and
                        Berger, Edo and Biwer, Christopher M.",
      title          = "{Measuring the viewing angle of GW170817 with
                        electromagnetic and gravitational waves}",
      journal        = "Astrophys. J. Lett.",
      volume         = "860",
      year           = "2018",
      pages          = "L2",
      doi            = "10.3847/2041-8213/aac6c1",
      eprint         = "1804.04179",
      archivePrefix  = "arXiv",
      primaryClass   = "astro-ph.HE",
      SLACcitation   = "%%CITATION = ARXIV:1804.04179;%%"
}

The data provided contain the thinned posterior samples from the MCMC chains used to produce the posterior proability density plots shown in Figure 1. These data are stored in the files:

  1. gw_only_posteriors.hdf contains the posterior samples from the MCMC where we only use the gravitational-wave data.

  2. gw_and_skyloc_posteriors.hdf containes the posterior samples from the MCMC where we use the gravitational-wave data and fix the sky location of GW170817 to RA = 197.450374, Dec = -23.381495 from Soares-Santos et al. (2017).

  3. gw_skyloc_and_dist_posteriors.hdf contains the posterior samples from the MCMC where we use the gravitational-wave data, fix the sky location of GW170817 to RA = 197.450374, Dec = -23.381495 from Soares-Santos et al., (2017), and use a Gaussian prior on the luminosity distance taken from Cantiello et al. (2018).

The results used in the paper were generated with the PyCBC v1.9.4 release.

Runing this notebook in a Docker container

This notebook can be run from a PyCBC Docker container, or a machine with PyCBC installed. Instructions for downloading the docker container are available from the PyCBC home page. To start a container with instance of Jupyter notebook, run the commands

docker pull pycbc/pycbc-el7:v1.9.4
docker run -p 8888:8888 --name pycbc_notebook -it pycbc/pycbc-el7:v1.9.4 /bin/bash -l

Once the container has started, this git repository can be downloaded with the command:

git clone https://github.com/sugwg/gw170817-inclination-angle.git

The notebook server can be started inside the container with the command:

jupyter notebook --ip 0.0.0.0 --no-browser

You can then connect to the notebook server at the URL printed by jupyter. Navigate to the directory gw170817-inclination-angle in the cloned git repository and open data_release_companion.ipynb, the notebook that demonstartes use of these reults.

Acknowledgements

We thank Stefan Ballmer and Steven Reyes for useful discussions. We thank Alexander H. Nitz and Collin D. Capano for useful discussions on setting up this notebook. We particularly thank Collin D. Capano for contributing to the development of PyCBC Inference; unfortunately, he did not wish to be an author of this work because of restrictions required by the LIGO Scientific Collaboration policies.

Funding

This work was supported by U.S. National Science Foundation awards PHY-1404395 (DAB, CMB), PHY-1707954 (DAB, SD, DF) and AST-1714498 (EB). Computational work was supported by Syracuse University and National Science Foundation award OAC-1541396. DAB, EB, and SD acknowledge the Kavli Institute for Theoretical Physics which is supported by the National Science Foundation award PHY-1748958.

Authors contributions:

Conceptualization, DAB and EB; Methodology, DAB, EB, CMB, SD, and DF; Software: CMB and CDC; Validation: SD; Formal Analysis: DF; Investigation: SD and DF; Resources: DAB; Data Curation: DAB and DF; Writing โ€“ Original Draft: DF; Writing โ€“ Review and Editing: DAB, EB, CMB, SD, and DF; Visualization: DF, CDC, AHN; Supervision: DAB; Project Administration: DAB; Funding Acquisition: EB, DAB.

gw170817-inclination-angle's People

Contributors

couvares avatar dfinstad avatar duncan-brown avatar soumide1102 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

couvares dfinstad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.