{
"cells": [
{
"cell_type": "markdown",
"id": "493e8540",
"metadata": {},
"source": [
""
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "f2f9bcee",
"metadata": {
"ploomber": {
"memory_usage": 440.89453125,
"timestamp_end": 1695852156.833449,
"timestamp_start": 1695852156.79088
},
"tags": [
"remove-input"
]
},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2\n",
"%matplotlib inline\n",
"\n",
"import pandas as pd\n",
"\n",
"pd.set_option(\"display.max_rows\", None, \"display.max_columns\", None)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "3aaa49a2",
"metadata": {
"ploomber": {
"memory_usage": 441.48046875,
"timestamp_end": 1695852160.751654,
"timestamp_start": 1695852156.833517
},
"tags": [
"hide-cell"
]
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: nrsur_catalog in /Users/avaj0001/Documents/projects/NRSUR_PRJ/nrsur_catalog/src (0.0.5)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n",
"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)\r\n"
]
}
],
"source": [
"! pip install nrsur_catalog"
]
},
{
"cell_type": "markdown",
"id": "107013a4",
"metadata": {},
"source": [
"# GW200128_022011\n",
"\n",
"Below are some plots for GW200128_022011 from the NRSurrogate Catalog."
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "735f6a3d",
"metadata": {
"ploomber": {
"memory_usage": 550.0546875,
"timestamp_end": 1695852161.453576,
"timestamp_start": 1695852160.752309
},
"tags": [
"remove-output"
]
},
"outputs": [],
"source": [
"from nrsur_catalog import NRsurResult\n",
"\n",
"nrsur_result = NRsurResult.load(\"GW200128_022011\", cache_dir=\".nrsur_catalog_cache\")\n",
"# you can specify a `cache_dir`: folder where data will be downloaded"
]
},
{
"cell_type": "markdown",
"id": "5ecf6df1",
"metadata": {},
"source": [
"## Summary"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "8f19fdcf",
"metadata": {
"ploomber": {
"memory_usage": 551.59765625,
"timestamp_end": 1695852161.611529,
"timestamp_start": 1695852161.453696
},
"tags": [
"remove-output"
]
},
"outputs": [
{
"data": {
"text/html": [
"
\n", " | Posterior 90% CI | \n", "Prior | \n", "
---|---|---|
Parameter | \n", "\n", " | \n", " |
$\\chi_1$ | \n", "${0.56}_{-0.35}^{+0.29}$ | \n", "$\\text{Uniform} [0, 0.99]$ | \n", "
$\\chi_2$ | \n", "${0.51}_{-0.34}^{+0.33}$ | \n", "$\\text{Uniform} [0, 0.99]$ | \n", "
$\\phi$ | \n", "${2.73}_{-1.01}^{+2.67}$ | \n", "$\\text{Uniform} [0, 6.28]$ | \n", "
$\\mathcal{M}_{c}^{\\rm det}\\ [M_{\\odot}]$ | \n", "${49.77}_{-3.47}^{+3.48}$ | \n", "$\\text{UniformInComponentsChirpMass} [12, 400]$ | \n", "
$t_c\\ [s]$ | \n", "${1264213229.88}_{-0.01}^{+0.03}$ | \n", "$\\text{Uniform} [1264213229.8, 1264213230.0]$ | \n", "
$d_L\\ [Mpc]$ | \n", "${3100.62}_{-1137.99}^{+1402.16}$ | \n", "$\\text{UniformSourceFrame} [100.0, 10000.0]$ | \n", "
$q$ | \n", "${0.81}_{-0.17}^{+0.13}$ | \n", "$\\text{UniformInComponentsMassRatio} [0.17, 1]$ | \n", "
$\\phi$ | \n", "${3.25}_{-2.27}^{+1.99}$ | \n", "$\\text{Uniform} [0, 6.28]$ | \n", "
$\\phi_{12}$ | \n", "${3.25}_{-2.32}^{+2.12}$ | \n", "$\\text{Uniform} [0, 6.28]$ | \n", "
$\\phi_{\\mathrm{JL}}$ | \n", "${3.10}_{-2.20}^{+2.23}$ | \n", "$\\text{Uniform} [0, 6.28]$ | \n", "
$\\psi$ | \n", "${1.59}_{-0.92}^{+0.92}$ | \n", "$\\text{Uniform} [0, 3.14]$ | \n", "
$\\theta_{\\mathrm{JN}}$ | \n", "${1.57}_{-0.94}^{+0.94}$ | \n", "$\\text{Sine} [0, 3.14]$ | \n", "
$\\theta_1$ | \n", "${1.27}_{-0.48}^{+0.52}$ | \n", "$\\text{Sine} [0, 3.14]$ | \n", "
$\\theta_2$ | \n", "${1.43}_{-0.60}^{+0.66}$ | \n", "$\\text{Sine} [0, 3.14]$ | \n", "
${M}^{\\rm det}\\ [M_{\\odot}]$ | \n", "${115.86}_{-7.48}^{+7.88}$ | \n", "$\\text{Constraint} [60, 400]$ | \n", "
$\\theta$ | \n", "${1.65}_{-0.05}^{+0.05}$ | \n", "$\\text{Sine} [0, 3.14]$ | \n", "
$m_1^{\\rm src}\\ [M_{\\odot}]$ | \n", "${42.53}_{-5.47}^{+6.38}$ | \n", "$-$ | \n", "
$m_2^{\\rm src}\\ [M_{\\odot}]$ | \n", "${33.39}_{-5.42}^{+5.49}$ | \n", "$-$ | \n", "
$\\chi_{\\mathrm{eff}}$ | \n", "${0.11}_{-0.13}^{+0.13}$ | \n", "$-$ | \n", "
$\\chi_{\\mathrm{p}}$ | \n", "${0.57}_{-0.25}^{+0.23}$ | \n", "$-$ | \n", "
$\\alpha$ | \n", "${3.76}_{-2.74}^{+0.80}$ | \n", "$-$ | \n", "
$\\delta$ | \n", "${-0.29}_{-0.74}^{+1.11}$ | \n", "$-$ | \n", "
$M_f^{\\rm src}\\ [M_{\\odot}]$ | \n", "${109.91}_{-6.70}^{+6.94}$ | \n", "$-$ | \n", "
$\\chi_f$ | \n", "${0.73}_{-0.05}^{+0.05}$ | \n", "$-$ | \n", "
$v_f\\ [{\\rm km/s}]$ | \n", "${629.24}_{-417.10}^{+740.06}$ | \n", "$-$ | \n", "