MapMaker

class gammapy.cube.MapMaker(geom, offset_max, exclusion_mask=None)[source]

Bases: object

Make maps from IACT observations.

Parameters:

geom : WcsGeom

Reference image geometry

offset_max : Angle

Maximum offset angle

exclusion_mask : Map

Exclusion mask

Methods Summary

make_images([spectrum]) Create 2D images by summing over the energy axis.
run(obs_list[, selection]) Run MapMaker for a list of observations to create stacked counts, exposure and background maps

Methods Documentation

make_images(spectrum=None)[source]

Create 2D images by summing over the energy axis.

Exposure is weighted with an assumed spectrum, resulting in a weighted mean exposure image.

Parameters:

spectrum : SpectralModel

Spectral model to compute the weights. Default is power-law with spectral index of 2.

Returns:

images : dict of Map

2D images

run(obs_list, selection=None)[source]

Run MapMaker for a list of observations to create stacked counts, exposure and background maps

Parameters:

obs_list : ObservationList

List of observations

selection : list

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

Returns:

maps: dict of stacked counts, background and exposure maps.