FoVBackgroundMaker¶
-
class
gammapy.cube.
FoVBackgroundMaker
(method='scale', exclusion_mask=None)[source]¶ Bases:
object
Normalize template background on the whole field-of-view.
The dataset background model can be simply scaled (method=”scale”) or fitted (method=”fit”) on the dataset counts.
The normalization is performed outside the exclusion mask that is passed on init.
If a SkyModel is set on the input dataset and method is ‘fit’, its are frozen during the fov normalization fit.
- Parameters
- methodstr in [‘fit’, ‘scale’]
the normalization method to be applied. Default ‘scale’.
- exclusion_mask
WcsNDMap
Exclusion mask
Methods Summary
run
(self, dataset)Run FoV background maker.
Methods Documentation
-
run
(self, dataset)[source]¶ Run FoV background maker.
Fit the background model norm
- Parameters
- dataset
MapDataset
Input map dataset.
- dataset