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:
- edisp
EnergyDispersion2D
The 2D energy dispersion IRF.
- pointing
SkyCoord
The pointing direction.
- geom
Geom
The map geometry to be used. It provides the target geometry. migra and true energy axes should be given in this specific order.
- exposure_map
Map
, 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.
- edisp
- Returns:
- edispmap
EDispMap
The resulting energy dispersion map.
- edispmap