SherpaMultiGaussPSF

class gammapy.irf.SherpaMultiGaussPSF(source)[source]

Bases: object

Multi-Gauss PSF as represented in the Sherpa software.

Note that Sherpa uses the following function f(x,y) = f(r) = A exp[-f(r/F)^2] f = 2.7725887 = 4log2 relates the full-width at half-maximum F to the Gaussian sigma

Methods Summary

center_psf() Set xpos and ypos of the PSF to the dataspace center.
containment_fraction(theta[, npix]) Compute fraction of PSF contained inside theta.
evaluate(t, ampl1, fwhm1, ampl2, fwhm2, …) Hand-coded evaluate for debugging.
set() Set the PSF for Sherpa.

Methods Documentation

center_psf()[source]

Set xpos and ypos of the PSF to the dataspace center.

containment_fraction(theta, npix=1000)[source]

Compute fraction of PSF contained inside theta.

evaluate(t, ampl1, fwhm1, ampl2, fwhm2, ampl3, fwhm3)[source]

Hand-coded evaluate for debugging.

set()[source]

Set the PSF for Sherpa.