RingBackgroundMaker#
- class gammapy.makers.RingBackgroundMaker(r_in, width, exclusion_mask=None)[source]#
Bases:
gammapy.makers.core.Maker
Perform a local renormalisation of the existing background template, using a ring kernel.
Expected signal regions should be removed by passing an exclusion mask
- Parameters
See also
AdaptiveRingBackgroundEstimator
Examples
For a usage example, see Ring background map tutorial.
Attributes Summary
Methods Summary
kernel
(image)Ring kernel.
make_maps_off
(dataset)Make off maps
run
(dataset[, observation])Run ring background maker
Attributes Documentation
- tag = 'RingBackgroundMaker'#
Methods Documentation
- kernel(image)[source]#
Ring kernel.
- Parameters
- image
WcsNDMap
Input Map
- image
- Returns
- ring
Ring2DKernel
Ring kernel.
- ring
- make_maps_off(dataset)[source]#
Make off maps
- Parameters
- dataset
MapDataset
Input map dataset.
- dataset
- Returns
- maps_offdict of
WcsNDMap
Dictionary containing
counts_off
andacceptance_off
maps.
- maps_offdict of
- run(dataset, observation=None)[source]#
Run ring background maker
- Parameters
- dataset
MapDataset
Input map dataset.
- dataset
- Returns
- dataset_on_off
MapDatasetOnOff
On off dataset.
- dataset_on_off