compute_lima_on_off_image

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

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

Parameters:

n_on : WcsNDMap

Counts image

n_off : WcsNDMap

Off counts image

a_on : WcsNDMap

Relative background efficiency in the on region

a_off : WcsNDMap

Relative background efficiency in the off region

kernel : astropy.convolution.Kernel2D

Convolution kernel

Returns:

images : dict

Dictionary containing result maps Keys are: significance, n_on, background, excess, alpha