About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2007

URL: http://cxc.harvard.edu/sherpabeta/load_rmf.py.html
AHELP for Sherpa 4.0 Beta load_rmf Context: py.sherpa

Synopsis

Load RMF data by id

Syntax

load_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 )

Description

Load 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).

Bugs

See the bugs pages on the Sherpa Beta website for an up-to-date listing of known bugs.

Last modified: December 2007



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.