create_arf

sherpa.astro.instrument.create_arf(elo, ehi, specresp=None, exposure=None, ethresh=None, name='user-arf')[source]

Create an ARF.

Parameters:
  • ehi (elo,) – The energy bins (low and high, in keV) for the ARF. The ehi values must be greater than the elo values for each bin, and the energy arrays must be in increasing or decreasing order.
  • specresp (None or array, optional) – The spectral response (in cm^2) for the ARF. It is assumed to be >= 0. If not given a flat response of 1.0 is used.
  • exposure (number or None, optional) – If not None, the exposure of the ARF in seconds.
  • ethresh (number or None, optional) – Passed through to the DataARF call. It controls whether zero-energy bins are replaced.
  • name (str) – The name of the data set
Returns:

arf

Return type:

sherpa.astro.data.DataARF instance