create_psf_3d

pyirf.gammapy.create_psf_3d(psf, true_energy_bins, source_offset_bins, fov_offset_bins)[source]

Create a gammapy.irf.PSF3D from pyirf outputs.

Parameters:
psf: astropy.units.Quantity[(solid angle)^-1]

Point spread function array, must have shape (n_energy_bins, n_fov_offset_bins, n_source_offset_bins)

true_energy_bins: astropy.units.Quantity[energy]

Bin edges in true energy

source_offset_bins: astropy.units.Quantity[angle]

Bin edges in the source offset.

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:
psf: gammapy.irf.PSF3D