FoVBackgroundMaker

class gammapy.makers.FoVBackgroundMaker(method='scale', exclusion_mask=None, spectral_model_tag='pl-norm')[source]

Bases: gammapy.makers.Maker

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_maskWcsNDMap

Exclusion mask

spectral_model_tagstr

Default norm spectral model to use for the FoVBackgroundModel, if none is defined on the dataset.

Attributes Summary

tag

Methods Summary

make_default_fov_background_model(dataset)

Add fov background model to the model definition

run(dataset[, observation])

Run FoV background maker.

Attributes Documentation

tag = 'FoVBackgroundMaker'

Methods Documentation

make_default_fov_background_model(dataset)[source]

Add fov background model to the model definition

Parameters
datasetMapDataset

Input map dataset.

Returns
datasetMapDataset

Map dataset including

run(dataset, observation=None)[source]

Run FoV background maker.

Fit the background model norm

Parameters
datasetMapDataset

Input map dataset.