make_map_background_irf#
- gammapy.makers.utils.make_map_background_irf(pointing, ontime, bkg, geom, oversampling=None, use_region_center=True, obstime=None)[source]#
Compute background map from background IRFs.
- Parameters:
- pointing
FixedPointingInfoorSkyCoord Observation pointing.
If a
FixedPointingInfois passed, FOV coordinates are properly computed.If a
SkyCoordis passed, FOV frame rotation is not taken into account.
- ontime
Quantity Observation ontime. i.e. not corrected for deadtime see https://gamma-astro-data-formats.readthedocs.io/en/latest/irfs/full_enclosure/bkg/index.html#notes) # noqa: E501
- bkg
Background3D Background rate model.
- geom
WcsGeom Reference geometry.
- oversamplingint
Oversampling factor in energy, used for the background model evaluation.
- use_region_centerbool, optional
For geom as a
RegionGeom. If True, consider the values at the region center. If False, average over the whole region. Default is True.- obstime
Time Observation time to use.
- pointing
- Returns:
- background
WcsNDMap Background predicted counts sky cube in reconstructed energy.
- background