Source code for gammapy.irf.psf.table

# Licensed under a 3-clause BSD style license - see LICENSE.rst
import logging
import astropy.units as u
from .core import PSF

__all__ = ["PSF3D"]

log = logging.getLogger(__name__)


[docs] class PSF3D(PSF): """PSF with axes: energy, offset, rad. Data format specification: :ref:`gadf:psf_table` Parameters ---------- axes : list of `~gammapy.maps.MapAxis` or `~gammapy.maps.MapAxes` Required axes (in the given order) are: * energy_true (true energy axis) * migra (energy migration axis) * rad (rad axis) data : `~astropy.units.Quantity` PSF (3-dim with axes: psf[rad_index, offset_index, energy_index]. meta : dict Metadata dictionary. """ tag = "psf_table" required_axes = ["energy_true", "offset", "rad"] default_unit = u.sr**-1