- sherpa.astro.ui.get_arf(id=None, resp_id=None, bkg_id=None)
Return the ARF associated with a PHA data set.
arf – This is a reference to the ARF, rather than a copy, so that changing the fields of the object will change the values in the data set.
- Return type:
Simulate a PHA data set from a model.
Return the respone information applied to a PHA data set.
Load an ARF from a file and add it to a PHA data set.
Load a file as a PHA data set.
Define the convolved model expression for a data set.
Set the ARF for use by a PHA data set.
Set the RMF for use by a PHA data set.
Read in an ARF from a file.
Return the exposure field of the ARF from the default data set:
Copy the ARF from the default data set to data set 2:
>>> arf1 = get_arf() >>> set_arf(2, arf1)
Retrieve the ARF associated to the second background component of the ‘core’ data set:
>>> bgarf = get_arf('core', 'bkg.arf', bkg_id=2)
Retrieve the ARF and RMF for the default data set and use them to create a model expression which includes a power-law component (pbgnd) that is not convolved by the response:
>>> arf = get_arf() >>> rmf = get_rmf() >>> src_expr = xsphabs.abs1 * powlaw1d.psrc >>> set_full_model(rmf(arf(src_expr)) + powlaw1d.pbgnd) >>> print(get_model())