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_rmf.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 load_rmf Context: sherpa

Synopsis

Module function to load data from an RMF file into Sherpa

Syntax

Integer_Type load_rmf(String_Type, String_Type | Struct_Type)

Success/Error Return Values: 1/0

Arguments:

(1) Name of instrument (RSP) model instance

(2) RMF filename, or

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

Description

This function loads data from an RMF file into Sherpa, assigning the data to the RSP model instance identified by the first argument. If no such model exists before the call, a new RSP model is created.

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

Example 1

sherpa> () = load_rmf("rr","example.rmf")

In this example, the data from the RMF file example.rmf is assigned to the RSP model ``rr''.

Example 2

sherpa> rmfst = readrmf("example.arf")
sherpa> () = load_rmf("rr","rmfst")
sherpa> () = sherpa_eval("instrument 1 = rr")

Here the RMF data are read into the S-Lang variable ``rmfst''. The load_rmf() function then reads the data from arrays which are part of the variable ``rmfst''.

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.