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 2006

URL: http://cxc.harvard.edu/ciao3.4/load_inst.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 load_inst Context: sherpa

Synopsis

Module function to load data from ARF and RMF files into Sherpa. load_instrument is an alternate name.

Syntax

Integer_Type load_inst({String_Type | Struct_Type},{String_Type |
Struct_Type})

Success/Error Return Values: 1/0

Arguments:

(1) ARF filename, or

(1) S-Lang variable output by readarf()

(2) RMF filename, or

(2) S-Lang variable output by readrmf()

Description

This function loads data from an ARF file and an RMF file into Sherpa, assigning them to an automatically named RSP model instance.

Note that the order (ARF,RMF; RMF,ARF) does not actually matter, except that currently an unsuppressible library error message appears when the RMF is listed first. This error message may be safely ignored.

See the related Sherpa models RSP, FRMF, and FARF for more information.

Example

sherpa> rmfst = readrmf("example.rmf")
sherpa> () = load_inst("example.arf",rmfst)

In this example, RMF data are read from example.rmf and put into the S-Lang variable ``rmfst''; this variable is then passed as an argument to load_inst(). The ARF data are read directly from the example.arf file.

Bugs

See the Sherpa bug pages online for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



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.