make_mean_psf

gammapy.irf.make_mean_psf(observations, position, energy=None, rad=None)[source]

Compute mean energy-dependent PSF.

Parameters:

observations : Observations

Observations for which to compute the PSF

position : SkyCoord

Position at which to compute the PSF

energy : Quantity

1-dim energy array for the output PSF. If none is given, the energy array of the PSF from the first observation is used.

rad : Angle

1-dim offset wrt source position array for the output PSF. If none is given, the energy array of the PSF from the first observation is used.

Returns:

psf : EnergyDependentTablePSF

Mean PSF