ReflectedRegionsBackgroundMaker

class gammapy.spectrum.ReflectedRegionsBackgroundMaker(angle_increment='0.1 rad', min_distance='0 rad', min_distance_input='0.1 rad', max_region_number=10000, exclusion_mask=None, binsz='0.01 deg')[source]

Bases: object

Reflected regions background maker.

Parameters
angle_incrementAngle, optional

Rotation angle applied when a region falls in an excluded region.

min_distanceAngle, optional

Minimal distance between two consecutive reflected regions

min_distance_inputAngle, optional

Minimal distance from input region

max_region_numberint, optional

Maximum number of regions to use

exclusion_maskWcsNDMap, optional

Exclusion mask

binszAngle

Bin size of the reference map used for region finding.

Methods Summary

make_counts_off(self, dataset, observation)

Make off counts.

run(self, dataset, observation)

Run reflected regions background maker

Methods Documentation

make_counts_off(self, dataset, observation)[source]

Make off counts.

Parameters
datasetSpectrumDataset

Spectrum dataset.

observationDatastoreObservation

Data store observation.

Returns
counts_offCountsSpectrum

Off counts.

run(self, dataset, observation)[source]

Run reflected regions background maker

Parameters
datasetSpectrumDataset

Spectrum dataset.

observationDatastoreObservation

Data store observation.

Returns
dataset_on_offSpectrumDatasetOnOff

On off dataset.