fill_acceptance_image¶
-
gammapy.background.
fill_acceptance_image
(header, center, offset, acceptance, offset_max=<Angle 2.5 deg>, interp_kwargs=None)[source]¶ Generate a 2D image of a radial acceptance curve.
The radial acceptance curve is given as an array of values defined at the specified offsets.
Parameters: header :
Header
Fits header of the reference image
center :
SkyCoord
Coordinate of the center of the image.
offset :
Angle
1D array of offset values where acceptance is defined.
acceptance :
ndarray
Array of acceptance values.
interp_kwargs : dict
option for interpolation for
interp1d
Returns: image :
ImageHDU
New image filled with radial acceptance.