create_energy_dispersion_2d
- pyirf.gammapy.create_energy_dispersion_2d(energy_dispersion, true_energy_bins, migration_bins, fov_offset_bins)[source]
Create a
gammapy.irf.EnergyDispersion2D
from pyirf outputs.- Parameters:
- energy_dispersion: numpy.ndarray
Energy dispersion array, must have shape (n_energy_bins, n_migra_bins, n_source_offset_bins)
- true_energy_bins: astropy.units.Quantity[energy]
Bin edges in true energy
- migration_bins: numpy.ndarray
Bin edges for the relative energy migration (
reco_energy / true_energy
)- fov_offset_bins: astropy.units.Quantity[angle]
Bin edges in the field of view offset. For Point-Like IRFs, only giving a single bin is appropriate.
- Returns:
- edisp: gammapy.irf.EnergyDispersion2D