Compute the overlap between two skymaps
- scipy-stack (numpy, scipy, matplotlib, pandas)
- astropy
- healpy
- ligo.skymap (only supports Python3.X)
- ligo-gracedb (for batch downloading skymaps)
- pycondor
This package is available on PyPI. To install, simply run
pip install skymap-overlap
To compute the overlap between two skymaps compute_overlap
to compute the overlap. Currently the script computes three overlap statistics:
- Posterior overlap, which is defined as
- Normalized posterior overlap, which is defined as
- 90% credible region (CR) overlap, which is defined as
where
- Cross-highest posterior density (HPD)
where
Given two FITS skymaps, the simplest usage is
compute_overlap --skymap SKYMAP1.fits.gz --skymap SKYMAP2.fits.gz
To compute the pairwise overlap between a batch of skymaps, you can use compute_overlap_from_skymaps_pipe
which generates a DAG file
for you to submit to a HTCondor-compatible cluster to calculate the overlap.
The simplest usage is
compute_overlap_from_skymaps_pipe --skymap SKYMAP1.fits.gz --skymap SKYMAP2.fits.gz --skymap SKYMAP3.fits.gz
so on and so forth. There are also other options for example the accounting tag (if you are running on LDG).
You can use download_skymap
to download skymaps from GraceDB given the GID or SID. The simplest usage is
download_skymap GID_or_SID
By default it will download LALInference skymaps whenever possible. There is also an option --bayestar
to only use
skymaps generated by bayestar.
This package provides a command-line-interface tool combine_skymaps
that is identical to ligo-skymap-combine
here, except all distance information stored in the given maps will be discarded. The simplest usage is
combine_skymaps INPUT1.fits INPUT2.fits OUTPUT.fits
Rico K. L. Lo @ka-lok.lo