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

Synopsis

Module function to load data from ARF and RMF files into Sherpa source or background instrument models.

Syntax

Integer_Type load_inst_from({String_Type | Struct_Type})
Integer_Type load_binst_from({String_Type | Struct_Type})

Success/Error Return Values: 1/0

Arguments:

(1) PHA filename, or

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

Description

This function loads data from an ARF file and an RMF file into Sherpa, assigning them to an automatically named RSP model instance. The file names are determined from the header keywords of the input PHA file or S-Lang variable.

See the related Sherpa command READ for more information.

Example

sherpa> () = load_inst_from("example.pha")
sherpa> phast = readpha("example.pha")
sherpa> () = load_inst_from(phast)

In the first example, the first call causes ARF and RMF files to be read from the files named in the header of the PHA file. In the second example, the data from the PHA file is first read into a S-lang variable; that S-Lang variable is then passed as an argument to the load_inst_from() function.

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.