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

Synopsis

Module function to load background from a PHA file into Sherpa

Syntax

Integer_Type load_back_from([Integer_Type], {String_Type | Struct_Type})

Success/Error Return Values: 1/0

Arguments:

(1) Data set number (default 1)

(2) PHA filename, or

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

Description

The function load_back_from() loads the contents of a background PHA file into Sherpa. The file name of the background file is determined from the header keywords of the input (source) PHA file or S-Lang variable.

See the related Sherpa command READ for more information.

Example 1

sherpa> () = load_back_from(,"example.pha")
sherpa> () = load_back_from(1,"example.pha")

These two commands will load the background data from the file background file listed in the header of example.pha.

Example 2

sherpa> foo = readpha("example.pha")
sherpa> () = load_back_from(1,foo)

The name of the background file is one of the fields of the ``foo'' variable. The background data, and only the background data, is then loaded with the load_back_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.