MapDatasetMaker

class gammapy.cube.MapDatasetMaker(background_oversampling=None, selection=None)[source]

Bases: object

Make maps for a single IACT observation.

Parameters
background_oversamplingint

Background evaluation oversampling factor in energy.

selectionlist

List of str, selecting which maps to make. Available: ‘counts’, ‘exposure’, ‘background’, ‘psf’, ‘edisp’ By default, all maps are made.

Attributes Summary

available_selection

Methods Summary

make_background(self, geom, observation)

Make background map.

make_counts(geom, observation)

Make counts map.

make_edisp(self, geom, observation)

Make energy dispersion map.

make_exposure(geom, observation)

Make exposure map.

make_exposure_irf(geom, observation)

Make exposure map with irf geometry.

make_psf(self, geom, observation)

Make psf map.

run(self, dataset, observation)

Make map dataset.

Attributes Documentation

available_selection = ['counts', 'exposure', 'background', 'psf', 'edisp']

Methods Documentation

make_background(self, geom, observation)[source]

Make background map.

Parameters
geomGeom

Reference geom.

observationDataStoreObservation

Observation container.

Returns
backgroundMap

Background map.

static make_counts(geom, observation)[source]

Make counts map.

Parameters
geomGeom

Reference map geom.

observationDataStoreObservation

Observation container.

Returns
countsMap

Counts map.

make_edisp(self, geom, observation)[source]

Make energy dispersion map.

Parameters
geomGeom

Reference geom.

observationDataStoreObservation

Observation container.

Returns
edispEDispMap

Edisp map.

static make_exposure(geom, observation)[source]

Make exposure map.

Parameters
geomGeom

Reference map geom.

observationDataStoreObservation

Observation container.

Returns
exposureMap

Exposure map.

static make_exposure_irf(geom, observation)[source]

Make exposure map with irf geometry.

Parameters
geomGeom

Reference geom.

observationDataStoreObservation

Observation container.

Returns
exposureMap

Exposure map.

make_psf(self, geom, observation)[source]

Make psf map.

Parameters
geomGeom

Reference geom.

observationDataStoreObservation

Observation container.

Returns
psfPSFMap

Psf map.

run(self, dataset, observation)[source]

Make map dataset.

Parameters
datasetMapDataset

Reference dataset.

observationDataStoreObservation

Observation

Returns
datasetMapDataset

Map dataset.