|
|
|
|
SynopsisLoad ARF data by id Syntaxload_arf( [id=1], filename, [resp_id=1] ) load_arf( [id=1], ARFCrate, [resp_id=1] ) load_arf( [id=1], PyFITS HDUList, [resp_id=1] ) load_arf( id=None, filename|ARFCrate|PyFITS HDUList, resp_id=None, bkg_id=None ) DescriptionLoad a FITS file containing ancillary response data given a filename and path, or an ARFCrate object, or a PyFITS HDUList object into a data set by data set ID and response ID. The command can operate on any response of a source or background dataset by specifying the relevant ids. Example 1
sherpa> load_rmf(rmf_crate, resp_id=1, bkg_id=2)
sherpa> load_arf("arf.fits", resp_id=1, bkg_id=2)Load background responses on the second background (bkg_id=2) of a PHA data set. The RMF is loaded from a Crate; the ARF is loaded from a file. Both commands use the default data ID. Example 2
sherpa> load_arf("arf.fits")
sherpa> load_arf("bkg", "arf.fits")
sherpa> load_arf(1, "arf.fits", 2)
sherpa> load_arf("arf.fits", resp_id=2)
sherpa> load_arf(crate)
sherpa> load_arf(hdulist)The load_arf function can be called with just a filename and path argument, in which case the default id and resp_id will be used. Data set IDs and response IDs can be integers or strings; in the latter case a string can denote useful information about the data (e.g., whether it is your source or background data set). BugsSee the bugs pages on the Sherpa Beta website for an up-to-date listing of known bugs. See Also
|
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |