Skip to content
Snippets Groups Projects

Sky map overlap integral can now use MOC (multi-ordered) GW sky maps; fixes #19

Compare and Show latest version
6 files
+ 44
15
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -57,8 +57,18 @@ parser = OptionParser(
help="Gracedb url"),
Option("-f", "--far_grb", metavar="1e-6", default=None,
help="False alarm rate of GRB"),
Option("-r", "--em_rate", metavar="1e-3", default=None,
help="False alarm rate of GRB")
Option("-n", "--em_rate", metavar="1e-3", default=None,
help="False alarm rate of GRB"),
Option("-m", "--se_moc", dest="se_moc", action="store_true",
help="Assume the superevent sky map is multi-ordered (MOC)."),
Option("-M", "--ext_moc", dest="ext_moc", action="store_true",
help="Assume the external sky map is multi-ordered (MOC)."),
Option("-r", "--se_ring", dest="se_ring", action="store_true",
help="Assume the superevent map uses RING ordering rather than nested."),
Option("-R", "--ext_ring", dest="ext_ring", action="store_true",
help="Assume the external sky map uses RING ordering rather than nested."),
Option("-c", "--use_radec", dest="use_radec", action="store_true",
help="Choose to use RA and dec of external sky map if a single pixel sky map.")
])
opts, args = parser.parse_args()
print(opts)
@@ -100,7 +110,7 @@ if opts.em_rate:
else:
em_rate = None
if se_fitsfile and ext_fitsfile:
if se_fitsfile and (ext_fitsfile or opts.use_radec):
incl_sky = True
else:
incl_sky = False
@@ -110,5 +120,7 @@ results = search.calc_signif_gracedb(
se_id, exttrig_id, tl, th, grb_search=grb_search,
se_fitsfile=se_fitsfile, ext_fitsfile=ext_fitsfile,
incl_sky=incl_sky, gracedb=gracedb, far_grb=far_grb,
em_rate=em_rate)
em_rate=em_rate, se_moc=opts.se_moc, ext_moc=opts.ext_moc,
se_nested=not opts.se_ring, ext_nested=not opts.ext_ring,
use_radec=opts.use_radec)
print(results)
Loading