make_background_cube¶
-
gammapy.cube.make_background_cube(pointing, obstime, bkg, ref_cube, offset_max)[source]¶ Calculate background predicted counts cube.
This function evaluates the background rate model on a sky cube, and then multiplies with the cube bin size, computed via
gammapy.cube.SkyCube.bin_size, resulting in a cube with values that contain predicted background counts per bin.Note that this method isn’t very precise if the energy bins are large. In that case you might consider implementing a more precise method that integrates over energy (e.g. by choosing a finer energy binning here and then to group energy bins).
Parameters: pointing :
SkyCoordPointing direction
obstime :
QuantityObservation time
bkg :
Background3DBackground rate model
ref_cube :
SkyCubeReference cube used to define geometry
offset_max :
AngleMaximum field of view offset.
Returns: background :
SkyCubeBackground predicted counts sky cube