irf.arf

class ximpol.irf.arf.xBinTableHDUSPECRESP(data=None, keywords=[], comments=[])[source]

Binary table for the SPECRESP extension of a arf file.

class ximpol.irf.arf.xBinTableHDUVIGNETTING(data, keywords=[], comments=[])[source]

Binary table for the VIGNETTING extension of a arf file.

class ximpol.irf.arf.xEffectiveArea(arf_file_path)[source]

Class describing an effectiva area.

The effective area is essentially a linear spline, with built-in facilities for evaluation and plotting.

Parameters:arf_file_path (str) – The path to the .arf FITS file containing the effective area table.

Example

>>> import os
>>> import numpy
>>> from ximpol import XIMPOL_IRF
>>>
>>> file_path = os.path.join(XIMPOL_IRF,'fits','xipe_baseline.arf')
>>> aeff = xEffectiveArea(file_path)
>>> x = numpy.arange(1, 10, 1)
>>> print(aeff(x))
>>> aeff.view()
eval_(energy, theta)[source]

Return the effective area at a given energy and off-axis angle.

view(off_axis_angle=10.0, show=True)[source]

Plot the effective area.