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, offset_max, geom_true=None, exclusion_mask=None, background_oversampling=None, migra_axis=None, rad_axis=None)[source]

Bases: object

Make maps for a single IACT observation.

Parameters:
observation : DataStoreObservation

Observation

geom : WcsGeom

Reference image geometry in reco energy, used for counts and background maps

offset_max : Angle

Maximum offset angle

geom_true : WcsGeom

Reference image geometry in true energy, used for IRF maps. It can have a coarser spatial bins than the counts geom. If none, the same as geom is assumed

exclusion_mask : Map

Exclusion mask (used by some background estimators)

migra_axis : MapAxis

Migration axis for edisp map

rad_axis : MapAxis

Radial axis for psf map

Attributes Summary

Methods Summary

run(self[, selection]) Make maps.

Attributes Documentation

coords
coords_etrue
fov_mask

Methods Documentation

run(self, selection=None)[source]

Make maps.

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

Parameters:
selection : list

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