Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

MapMakerObs

class gammapy.cube.MapMakerObs(observation, geom, geom_true=None, fov_mask=None, fov_mask_etrue=None, exclusion_mask=None)[source]

Bases: object

Make maps for a single IACT observation.

Parameters:
observation : DataStoreObservation

Observation

geom : WcsGeom

Reference image geometry

geom_true : WcsGeom

Reference image geometry in true energy, used for exposure maps and PSF. If none, the same as geom is assumed

fov_mask : ndarray

Mask to select pixels in field of view

exclusion_mask : Map

Exclusion mask (used by some background estimators)

Methods Summary

run([selection]) Make maps.

Methods Documentation

run(selection=None)[source]

Make maps.

Returns dict with keys “counts”, “exposure” and “background”.

Parameters:
selection : list

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