make_map_background_irf#
- gammapy.makers.utils.make_map_background_irf(pointing, ontime, bkg, geom, time_start, fov_rotation_step=<Quantity 1. deg>, oversampling=None, use_region_center=True)[source]#
Compute background map from background IRFs.
- Parameters:
- pointing
FixedPointingInfo
orSkyCoord
Observation pointing.
If a
FixedPointingInfo
is passed, FOV coordinates are properly computed.If a
SkyCoord
is 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.
- time_start
Time
Observation start time.
- fov_rotation_step
Quantity
Maximum rotation error to create sub-time bins if the irf is 3D and in AltAz. Default is 1.0 deg.
- oversamplingint, optional
Oversampling factor in energy, used for the background model evaluation. Default is None.
- 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.
- pointing
- Returns:
- background
WcsNDMap
Background predicted counts sky cube in reconstructed energy.
- background