Catalog plots#
Here we have some catalog plots showing the ensemble results of the catalog. (it may take a few minutes to download the data the first time you run this notebook.)
Show code cell content
! pip install nrsur_catalog
Requirement already satisfied: nrsur_catalog in /Users/avaj0001/Documents/projects/NRSUR_PRJ/nrsur_catalog/src (0.0.5)
Requirement already satisfied: matplotlib in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from nrsur_catalog) (3.7.2)
Requirement already satisfied: loguru in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from nrsur_catalog) (0.7.0)
Requirement already satisfied: bilby[gw] in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from nrsur_catalog) (1.4.1)
Requirement already satisfied: bilby.cython>=0.3.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (0.4.0)
Requirement already satisfied: dynesty>=2 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (2.1.0)
Requirement already satisfied: emcee in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/emcee-3.1.1-py3.9.egg (from bilby[gw]->nrsur_catalog) (3.1.1)
Requirement already satisfied: corner in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/corner-2.2.1-py3.9.egg (from bilby[gw]->nrsur_catalog) (2.2.1)
Requirement already satisfied: numpy in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (1.23.5)
Requirement already satisfied: scipy>=1.5 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (1.9.3)
Requirement already satisfied: pandas in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (1.5.1)
Requirement already satisfied: dill in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/dill-0.3.4-py3.9.egg (from bilby[gw]->nrsur_catalog) (0.3.4)
Requirement already satisfied: tqdm in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (4.66.1)
Requirement already satisfied: h5py in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/h5py-3.6.0-py3.9-macosx-10.15-x86_64.egg (from bilby[gw]->nrsur_catalog) (3.6.0)
Requirement already satisfied: attrs in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/attrs-21.2.0-py3.9.egg (from bilby[gw]->nrsur_catalog) (21.2.0)
Requirement already satisfied: astropy>=5 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (5.1)
Requirement already satisfied: lalsuite in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (7.6)
Requirement already satisfied: gwpy in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (2.1.3)
Requirement already satisfied: tables in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/tables-3.6.1-py3.9-macosx-10.15-x86_64.egg (from bilby[gw]->nrsur_catalog) (3.6.1)
Requirement already satisfied: pyfftw in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from bilby[gw]->nrsur_catalog) (0.13.1)
Requirement already satisfied: contourpy>=1.0.1 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from matplotlib->nrsur_catalog) (1.1.0)
Requirement already satisfied: cycler>=0.10 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/cycler-0.11.0-py3.9.egg (from matplotlib->nrsur_catalog) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/fonttools-4.28.3-py3.9.egg (from matplotlib->nrsur_catalog) (4.28.3)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/kiwisolver-1.3.2-py3.9-macosx-10.15-x86_64.egg (from matplotlib->nrsur_catalog) (1.3.2)
Requirement already satisfied: packaging>=20.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from matplotlib->nrsur_catalog) (23.0)
Requirement already satisfied: pillow>=6.2.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/Pillow-8.4.0-py3.9-macosx-10.15-x86_64.egg (from matplotlib->nrsur_catalog) (8.4.0)
Requirement already satisfied: pyparsing<3.1,>=2.3.1 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/pyparsing-3.0.6-py3.9.egg (from matplotlib->nrsur_catalog) (3.0.6)
Requirement already satisfied: python-dateutil>=2.7 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/python_dateutil-2.8.2-py3.9.egg (from matplotlib->nrsur_catalog) (2.8.2)
Requirement already satisfied: importlib-resources>=3.2.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from matplotlib->nrsur_catalog) (6.0.1)
Requirement already satisfied: pyerfa>=2.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/pyerfa-2.0.0.1-py3.9-macosx-10.15-x86_64.egg (from astropy>=5->bilby[gw]->nrsur_catalog) (2.0.0.1)
Requirement already satisfied: PyYAML>=3.13 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/PyYAML-6.0-py3.9-macosx-10.15-x86_64.egg (from astropy>=5->bilby[gw]->nrsur_catalog) (6.0)
Requirement already satisfied: zipp>=3.1.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from importlib-resources>=3.2.0->matplotlib->nrsur_catalog) (3.9.0)
Requirement already satisfied: six>=1.5 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/six-1.16.0-py3.9.egg (from python-dateutil>=2.7->matplotlib->nrsur_catalog) (1.16.0)
Requirement already satisfied: dqsegdb2 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from gwpy->bilby[gw]->nrsur_catalog) (1.1.1)
Requirement already satisfied: gwdatafind in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from gwpy->bilby[gw]->nrsur_catalog) (1.1.1)
Requirement already satisfied: gwosc>=0.5.3 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from gwpy->bilby[gw]->nrsur_catalog) (0.6.1)
Requirement already satisfied: ligo-segments>=1.0.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from gwpy->bilby[gw]->nrsur_catalog) (1.4.0)
Requirement already satisfied: ligotimegps>=1.2.1 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from gwpy->bilby[gw]->nrsur_catalog) (2.0.1)
Requirement already satisfied: lscsoft-glue in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from lalsuite->bilby[gw]->nrsur_catalog) (3.0.1)
Requirement already satisfied: pytz>=2020.1 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/pytz-2021.3-py3.9.egg (from pandas->bilby[gw]->nrsur_catalog) (2021.3)
Requirement already satisfied: numexpr>=2.6.2 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages/numexpr-2.8.0-py3.9-macosx-10.15-x86_64.egg (from tables->bilby[gw]->nrsur_catalog) (2.8.0)
Requirement already satisfied: requests>=1.0.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from gwosc>=0.5.3->gwpy->bilby[gw]->nrsur_catalog) (2.27.1)
Requirement already satisfied: igwn-auth-utils[requests] in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from dqsegdb2->gwpy->bilby[gw]->nrsur_catalog) (0.2.2)
Requirement already satisfied: pyOpenSSL in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from lscsoft-glue->lalsuite->bilby[gw]->nrsur_catalog) (22.0.0)
Requirement already satisfied: pyRXP in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from lscsoft-glue->lalsuite->bilby[gw]->nrsur_catalog) (3.0.1)
Requirement already satisfied: cryptography>=2.3 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from igwn-auth-utils[requests]->dqsegdb2->gwpy->bilby[gw]->nrsur_catalog) (36.0.2)
Requirement already satisfied: scitokens>=1.7.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from igwn-auth-utils[requests]->dqsegdb2->gwpy->bilby[gw]->nrsur_catalog) (1.7.0)
Requirement already satisfied: safe-netrc>=1.0.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from igwn-auth-utils[requests]->dqsegdb2->gwpy->bilby[gw]->nrsur_catalog) (1.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from requests>=1.0.0->gwosc>=0.5.3->gwpy->bilby[gw]->nrsur_catalog) (1.26.9)
Requirement already satisfied: certifi>=2017.4.17 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from requests>=1.0.0->gwosc>=0.5.3->gwpy->bilby[gw]->nrsur_catalog) (2022.5.18.1)
Requirement already satisfied: charset-normalizer~=2.0.0 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from requests>=1.0.0->gwosc>=0.5.3->gwpy->bilby[gw]->nrsur_catalog) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from requests>=1.0.0->gwosc>=0.5.3->gwpy->bilby[gw]->nrsur_catalog) (3.3)
Requirement already satisfied: cffi>=1.12 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from cryptography>=2.3->igwn-auth-utils[requests]->dqsegdb2->gwpy->bilby[gw]->nrsur_catalog) (1.15.0)
Requirement already satisfied: PyJWT>=1.6.1 in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from scitokens>=1.7.0->igwn-auth-utils[requests]->dqsegdb2->gwpy->bilby[gw]->nrsur_catalog) (2.4.0)
Requirement already satisfied: pycparser in /Users/avaj0001/Documents/projects/deep_gw_pe_followup/venv/lib/python3.9/site-packages (from cffi>=1.12->cryptography>=2.3->igwn-auth-utils[requests]->dqsegdb2->gwpy->bilby[gw]->nrsur_catalog) (2.21)
from nrsur_catalog import Catalog
catalog = Catalog.load(cache_dir=".nrsur_catalog_cache")
Violin Plots#
catalog.violin_plot("mass_1_source")
catalog.violin_plot("mass_2_source")
catalog.violin_plot("mass_ratio")
catalog.violin_plot("chi_eff")
catalog.violin_plot("final_mass")
catalog.violin_plot("final_spin")
catalog.violin_plot("final_kick")
2D Scatter Plots#
fig = catalog.plot_2d_posterior("mass_1_source", "mass_2_source")
fig.savefig("catalog_mass_1_mass_2.png")
fig = catalog.plot_2d_posterior(
"chi_eff", "mass_ratio", event_posteriors=False, event_quantiles=False
)
fig.savefig("catalog_chi_eff_mass_ratio.png")
fig = catalog.plot_2d_posterior(
"chi_p", "final_kick", event_posteriors=True, event_quantiles=False
)
fig.savefig("catalog_chi_p_final_kick.png")
Comments#
This has been made with
nrsur_catalog
version 0.0.5. If you used this data, please cite this work.Leave a comment in this issue.