PSFKing¶
-
class
gammapy.irf.
PSFKing
(energy_lo, energy_hi, offset, 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: 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)Create PSFKing
fromTable
.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. to_fits
()Convert PSF table data to FITS HDU list. write
(filename, *args, **kwargs)Write PSF to FITS file. Methods Documentation
-
evaluate
(energy=None, offset=None)[source]¶ Evaluate analytic PSF parameters at a given energy and offset.
Uses nearest-neighbor interpolation.
Parameters: Returns: - values :
Quantity
Interpolated value
- values :
-
static
evaluate_direct
(r, gamma, sigma)[source]¶ Evaluate the PSF model.
Formula is given here: PSF_KING.
Parameters: Returns: - psf_value :
Quantity
PSF value
- psf_value :
-
classmethod
read
(filename, hdu=1)[source]¶ Create
PSFKing
from FITS file.Parameters: - filename : str
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 :
-