Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

compute_lima_on_off_image

gammapy.detect.compute_lima_on_off_image(n_on, n_off, a_on, a_off, kernel, exposure=None)[source]

Compute Li & Ma significance and flux images for on-off observations.

Parameters:

n_on : SkyImage

Counts image

n_off : SkyImage

Off counts image

a_on : SkyImage

Relative background efficiency in the on region

a_off : SkyImage

Relative background efficiency in the off region

kernel : astropy.convolution.Kernel2D

Convolution kernel

exposure : SkyImage

Exposure image

Returns:

images : SkyImageList

Results images container