load_cta_irfs¶
-
gammapy.irf.load_cta_irfs(filename)[source]¶ load CTA instrument response function and return a dictionary container.
The IRF format should be compliant with the one discussed at http://gamma-astro-data-formats.readthedocs.io/en/latest/irfs/.
The various IRFs are accessible with the following keys:
‘aeff’ is a
EffectiveAreaTable2D‘edisp’ is a
EnergyDispersion2D‘psf’ is a
EnergyDependentMultiGaussPSF‘bkg’ is a
Background3D
- Parameters
- filenamestr
the input filename. Default is
- Returns
- cta_irfdict
the IRF dictionary
Examples
Access the CTA 1DC IRFs stored in the gammapy datasets
from gammapy.irf import load_cta_irfs cta_irf = load_cta_irfs("$GAMMAPY_DATA/cta-1dc/caldb/data/cta/1dc/bcf/South_z20_50h/irf_file.fits") print(cta_irf['aeff'])