gwcelery.tasks.ligo_fermi_skymaps module

Create and upload LVC-Fermi sky maps.

gwcelery.tasks.ligo_fermi_skymaps.create_combined_skymap(graceid)[source]

Creates and uploads the combined LVC-Fermi skymap. This also uploads the external trigger skymap to the external trigger GraceDB page.

(task)gwcelery.tasks.ligo_fermi_skymaps.get_preferred_skymap(graceid)[source]

Get the LVC skymap fits filename. If not available, will try again 10 seconds later, then 20, then 40, etc. until up to 10 minutes after initial attempt.

(task)gwcelery.tasks.ligo_fermi_skymaps.combine_skymaps(skymap1filebytes, skymap2filebytes)[source]

This task combines the two input skymaps, in this case the external trigger skymap and the LVC skymap and writes to a temporary output file. It then returns the contents of the file as a byte array.

(task)gwcelery.tasks.ligo_fermi_skymaps.external_trigger(graceid)[source]

Returns the associated external trigger GraceDB ID.

(task)gwcelery.tasks.ligo_fermi_skymaps.external_trigger_heasarc(external_id)[source]

Returns the HEASARC fits file link

(task)gwcelery.tasks.ligo_fermi_skymaps.get_external_skymap(heasarc_link)[source]

Download the Fermi sky map fits file and return the contents as a byte array. If not available, will try again 10 seconds later, then 20, then 40, etc. until up to 10 minutes after initial attempt.