fill_acceptance_image¶
-
gammapy.background.fill_acceptance_image(header, center, offset, acceptance, offset_max=<Angle 2.5 deg>, offset_min=<Angle 0. 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 :
HeaderFits header of the reference image
center :
SkyCoordCoordinate of the center of the image.
offset :
Angle1D array of offset values where acceptance is defined.
acceptance :
ndarrayArray of acceptance values.
interp_kwargs : dict
option for interpolation for
interp1dReturns: image :
ImageHDUNew image filled with radial acceptance.