|
|
|
|
SynopsisLoad RMF data by id Syntaxload_rmf( [id=1], filename, [resp_id=1] ) load_rmf( [id=1], RMFCrate, [resp_id=1] ) load_rmf( [id=1], PyFITS HDUList, [resp_id=1] ) load_rmf( id=None, filename|RMFCrate|PyFITS HDUList, resp_id=None, bkg_id=None ) DescriptionLoad a FITS file containing response data given a filename and path, or an RMFCrate 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_rmf("rmf.fits")
sherpa> load_rmf("bkg", "rmf.fits")
sherpa> load_rmf(1, "rmf.fits", 2)
sherpa> load_rmf("rmf.fits", resp_id=2)
sherpa> load_rmf(crate)
sherpa> load_rmf(hdulist)The load_rmf 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. |