get_specresp
- sherpa.astro.ui.get_specresp(id: IdType | None = None, filter=False, bkg_id: IdType | None = None)
Return the effective area values for a PHA data set.
- Parameters:
- id
int,str,orNone,optional The identifier for the data set to use. If not given then the default identifier is used, as returned by
get_default_id.- filterbool,
optional Should the filter attached to the data set be applied to the ARF or not. The default is
False.- bkg_id
int,str,orNone,optional Set if the ARF should be taken from a background set associated with the data set.
- id
- Returns:
- arf
array The effective area values for the data set (or background component).
- arf
Examples
Return the effective-area values for the default data set:
>>> arf = get_specresp()
Return the area for the second background component of the data set with the id “eclipse”:
>>> barf = get_spectresp("eclipse", bkg_id=2)