measure_containment_fraction

gammapy.image.measure_containment_fraction(image, radius, separation)[source]

Measure containment fraction.

Parameters:

image :`gammapy.image.SkyImage`

Image to measure on.

radius : Quantity

Containment radius.

separation : Angle

Separation from the source position array.

Returns:

containment_fraction : float

Containment fraction