create_psf_table_hdu

pyirf.io.create_psf_table_hdu(psf, true_energy_bins, source_offset_bins, fov_offset_bins, extname='PSF', **header_cards)[source]

Create a fits binary table HDU in GADF format for the PSF table. See the specification at https://gamma-astro-data-formats.readthedocs.io/en/latest/irfs/full_enclosure/psf/psf_table/index.html

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.

extname: str

Name for BinTableHDU

**header_cards

Additional metadata to add to the header, use this to set e.g. TELESCOP or INSTRUME.