measure_containment_fraction

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

Measure containment fraction.

Parameters:

data :`~astropy.unit.Quantity`

Image to measure on.

radius : Quantity

Containment radius.

separation : Angle

Separation from the source position array.

Returns:

containment_fraction : float

Containment fraction