CTAPerf

class gammapy.scripts.CTAPerf(aeff=None, edisp=None, psf=None, bkg=None, sens=None, rmf=None)[source]

Bases: object

CTA instrument response function container.

Class handling CTA performance.

For now we use the production 2 of the CTA IRF (https://portal.cta-observatory.org/Pages/CTA-Performance.aspx)

The IRF format should be compliant with the one discussed at http://gamma-astro-data-formats.readthedocs.io/en/latest/irfs/. Work will be done to handle better the PSF and the background rate.

This class is similar to DataStoreObservation, but only contains performance (no event data or livetime info). TODO: maybe re-factor code somehow to avoid code duplication.

Parameters:

aeff : EffectiveAreaTable

Effective area

edisp : EnergyDispersion2D

Energy dispersion

psf : Psf68Table

Point spread function

bkg : BgRateTable

Background rate

sens : SensitivityTable

Sensitivity

Methods Summary

peek([figsize]) Quick-look summary plots.
read(filename) Read from a FITS file.
superpose_perf(cta_perf, labels) Superpose performance plot.

Methods Documentation

peek(figsize=(15, 8))[source]

Quick-look summary plots.

classmethod read(filename)[source]

Read from a FITS file.

Compute RMF at 0.5 deg offset on fly.

Parameters:

filename : str

File containing the IRFs

static superpose_perf(cta_perf, labels)[source]

Superpose performance plot.

Parameters:

cta_perf : list of CTAPerf

List of performance

labels : list of str

List of labels