PSFKing¶
-
class
gammapy.irf.
PSFKing
(energy_axis_true, offset_axis, gamma, sigma, energy_thresh_lo=<Quantity 0.1 TeV>, energy_thresh_hi=<Quantity 100. TeV>)[source]¶ Bases:
object
King profile analytical PSF depending on energy and offset.
This PSF parametrisation and FITS data format is described here: PSF_KING.
- Parameters
Attributes Summary
Methods Summary
evaluate
([energy, offset])Evaluate analytic PSF parameters at a given energy and offset.
evaluate_direct
(r, gamma, sigma)Evaluate the PSF model.
from_table
(table)info
()Print some basic info.
read
(filename[, hdu])Create
PSFKing
from FITS file.to_energy_dependent_table_psf
([theta, rad, …])Convert to energy-dependent table PSF.
Convert PSF table data to FITS HDU list.
write
(filename, *args, **kwargs)Write PSF to FITS file.
Attributes Documentation
-
energy_axis_true
¶
-
offset_axis
¶
-
tag
= 'psf_king'¶
Methods Documentation
-
evaluate
(energy=None, offset=None)[source]¶ Evaluate analytic PSF parameters at a given energy and offset.
Uses nearest-neighbor interpolation.
-
static
evaluate_direct
(r, gamma, sigma)[source]¶ Evaluate the PSF model.
Formula is given here: PSF_KING.
-
classmethod
read
(filename, hdu=1)[source]¶ Create
PSFKing
from FITS file.- Parameters
- filenamestr
File name
-
to_energy_dependent_table_psf
(theta=None, rad=None, exposure=None)[source]¶ Convert to energy-dependent table PSF.
- Parameters
- Returns
- table_psf
EnergyDependentTablePSF
Energy-dependent PSF
- table_psf