make_edisp_kernel_map#

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

Make a 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 geom 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_center: Bool

If geom is a RegionGeom, whether to just consider the values at the region center or the instead the average over the whole region

Returns
edispmapEDispKernelMap

the resulting EDispKernel map