create_arf
- sherpa.astro.instrument.create_arf(elo, ehi, specresp=None, exposure=None, ethresh=None, name='user-arf', header=None)[source] [edit on github]
Create an ARF.
Added in version 4.10.1.
- Parameters:
- elo, ehi
numpy.ndarray The energy bins (low and high, in keV) for the ARF. It is assumed that ehi_i > elo_i, elo_j > 0, the energy bins are either ascending - so elo_i+1 > elo_i - or descending (elo_i+1 < elo_i), and that there are no overlaps.
- specresp
Noneorarray,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
numberorNone,optional If not None, the exposure of the ARF in seconds.
- ethresh
numberorNone,optional Passed through to the DataARF call. It controls whether zero-energy bins are replaced.
- name
str,optional The name of the ARF data set
- header
dict Header for the created ARF
- elo, ehi
- Returns:
- arf
sherpa.astro.data.DataARFinstance
- arf
See also