make_edisp_kernel_map#

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

Make an edisp kernel map for a single observation.

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

Parameters
edispEnergyDispersion2D

The 2D energy dispersion IRF.

pointingSkyCoord

The pointing direction.

geomGeom

The map geometry to be used. It provides the target geometry. energy 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
edispmapEDispKernelMap

the resulting EDispKernel map