make_edisp_map#

gammapy.makers.utils.make_edisp_map(edisp, pointing, geom, exposure_map=None, use_region_center=True)[source]#

Make an edisp map for a single observation.

Expected axes : migra and true energy in this specific order. The name of the migra MapAxis is expected to be ‘migra’.

Parameters:
edispEnergyDispersion2D

The 2D energy dispersion IRF.

pointingSkyCoord

The pointing direction.

geomGeom

The map geometry to be used. It provides the target geometry. migra and true energy axes should be given in this specific order.

exposure_mapMap, optional

The associated exposure map. Default is None.

use_region_centerbool, optional

For geom as a RegionGeom. If True, consider the values at the region center. If False, average over the whole region. Default is True.

Returns:
edispmapEDispMap

The resulting energy dispersion map.