Example scripts to interact with the SXS Catalog (https://black-holes.org/waveforms) and its data, hosted on Zenodo (https://zenodo.org). The data in the catalog is described in https://arxiv.org/abs/1904.04831.
This repo contains the following python scripts:
get_sxs_bbh_catalog.py
-- download waveforms, horizon quantities, and metadata for all binary-black-holes simulations in the SXS catalogget_sxs_public_metadata.py
-- download publicly available metadata for the catalog into JSON filesconvert_sxs_to_lvc.py
-- convert an SXS waveform into the LVC format (BETA)convert_sxs_metdata_txt_to_json.py
-- convert an SXS metadata.txt file to JSON formatcompare_sxs_converted_lvc.py
-- compare two different SXS waveforms in the LVC format, checking if attributes, splines, and time series are the samecompare_sxs_vs_lvc.py
-- compare SXS data in the LVC format to data in the SXS format, checking that they agree
This repo contains the following notebooks in Examples/
:
sxs_catalog_download_example.ipynb
-- how to download and interact with catalog datasxs_metadata_example.ipynb
-- how to download and manipulate sxs metadata provided at data.black-holes.orgsxs_arxiv_metadata_example.ipynb
-- how to download and manipulate sxs metadata included in arXiv:1904.04831sxs_zenodo_metadata_example.ipynb
-- how to download and manipulate zenodo metadatawaveform_tutorial.ipynb
-- how to work with finite-radius waveforms and extrapolated waveforms, and how to compute the wave polarizations at a chosen sky location
- All scripts require python 3 (https://python.org) and have been tested using python 3.7.
get_sxs_bbh_catalog.py
andget_sxs_public_metadata.py
depnd on thesxs
python module (https://github.com/sxs-collaboration/sxs), which requires python 3.convert_sxs_to_lvc.py
,compare_sxs_converted_lvc.py
,compare_sxs_converted_lvc.py
, andcompare_sxs_vs_lvc.py
depend onromspline
(https://github.com/crgalley/romspline), which is now compatible with python 3.- To install the prerequisites, you can run the command
pip install sxs romspline
, or add the text!pip install sxs romspline
to the beginning of a jupyter notebook.
Please send questions to questions@black-holes.org.