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.

measure_curve_of_growth

gammapy.image.measure_curve_of_growth(image, position, radius_max=None, radius_n=10)[source]

Measure the curve of growth for a given source position.

The curve of growth is determined by measuring the flux in a circle around the source and radius of this circle is increased

Parameters:
image : astropy.io.fits.ImageHDU

Image to measure on.

position : SkyCoord

Source position on the sky.

radius_max : Quantity

Maximal radius, up to which the containment is measured (default 0.2 deg).

radius_n : int

Number of radius steps.

Returns:
radii : Quantity

Radii where the containment was measured.

containment : Quantity

Corresponding contained flux.