RingBackgroundMaker¶
-
class
gammapy.cube.
RingBackgroundMaker
(r_in, width, exclusion_mask=None)[source]¶ Bases:
object
Ring background method for cartesian coordinates.
Step 1: apply exclusion mask
Step 2: ring-correlate
- Parameters
See also
gammapy.detect.KernelBackgroundEstimator
,AdaptiveRingBackgroundEstimator
Methods Summary
kernel
(self, image)Ring kernel.
make_maps_off
(self, dataset)Make off maps
run
(self, dataset)Run ring background maker
Methods Documentation
-
kernel
(self, image)[source]¶ Ring kernel.
- Parameters
- image
WcsNDMap
Input Map
- image
- Returns
- ring
Ring2DKernel
Ring kernel.
- ring
-
make_maps_off
(self, 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
(self, dataset)[source]¶ Run ring background maker
- Parameters
- dataset
MapDataset
Input map dataset.
- dataset
- Returns
- dataset_on_off
MapDatasetOnOff
On off dataset.
- dataset_on_off