create_effective_area_table_2d

pyirf.gammapy.create_effective_area_table_2d(effective_area, true_energy_bins, fov_offset_bins)[source]

Create a gammapy.irf.EffectiveAreaTable2D from pyirf outputs.

Parameters:
effective_area: astropy.units.Quantity[area]

Effective area array, must have shape (n_energy_bins, n_fov_offset_bins)

true_energy_bins: astropy.units.Quantity[energy]

Bin edges in 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:
gammapy.irf.EffectiveAreaTable2D
aeff2d: gammapy.irf.EffectiveAreaTable2D