gwcelery.tasks.skymaps module¶
Annotations for sky maps.
- (task)gwcelery.tasks.skymaps.annotate_fits_tuple(filecontents_versioned_filename, graceid, tags)[source]¶
Proxy that evaluates object once.
Proxy
will evaluate the object each time, while the promise will only evaluate it once.
- (task)gwcelery.tasks.skymaps.annotate_fits(filecontents, versioned_filename, graceid, tags)[source]¶
Perform annotations on a sky map.
This function downloads a FITS file and then generates and uploads all derived images as well as an HTML dump of the FITS header.
- gwcelery.tasks.skymaps.is_3d_fits_file(filecontents)[source]¶
Determine if a FITS file has distance information.
- (task)gwcelery.tasks.skymaps.annotate_fits_volume(filecontents, *args)[source]¶
Perform annotations that are specific to 3D sky maps.
- (task)gwcelery.tasks.skymaps.plot_allsky(filecontents)[source]¶
Plot a Mollweide projection of a sky map using the command-line tool ligo-skymap-plot.
- (task)gwcelery.tasks.skymaps.plot_volume(filecontents)[source]¶
Plot a 3D volume rendering of a sky map using the command-line tool ligo-skymap-plot-volume.
- (task)gwcelery.tasks.skymaps.flatten(filecontents, filename)[source]¶
Convert a HEALPix FITS file from multi-resolution UNIQ indexing to the more common IMPLICIT indexing using the command-line tool ligo-skymap-flatten.
- (task)gwcelery.tasks.skymaps.unflatten(filecontents, filename)[source]¶
Convert a HEALPix FITS file to multi-resolution UNIQ indexing from the more common IMPLICIT indexing using the command-line tool ligo-skymap-unflatten.
- (task)gwcelery.tasks.skymaps.skymap_from_samples(samplefilecontents, superevent_id, instruments)[source]¶
Generate multi-resolution FITS file from samples.
- (task)gwcelery.tasks.skymaps.plot_coherence(filecontents)[source]¶
IGWN alert handler to plot the coherence Bayes factor.
- Parameters:
- Returns:
png – The contents of a PNG file.
- Return type:
Notes
Under the hood, this just calls
plot_bayes_factor()
.
- (task)gwcelery.tasks.skymaps.handle_plot_coherence(alert)[source]¶
IGWN alert handler to plot and upload a visualization of the coherence Bayes factor.
Notes
Under the hood, this just calls
plot_coherence()
.