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

Synopsis

Module function to load data from an ARF file into Sherpa

Syntax

Integer_Type load_arf(String_Type, {String_Type | Struct_Type})

Success/Error Return Values: 1/0

Arguments:

(1) Name of instrument (RSP) model instance

(2) ARF filename, or

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

Description

This function loads data from an ARF 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 FARF for more information.

Example 1

sherpa> () = load_arf("rr","example.arf")

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

Example 2

sherpa> arfst = readarf("example.arf")
sherpa> () = load_arf("rr","arfst")
sherpa> () = sherpa_eval("instrument 1 = rr")

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

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.