Module function to load source data from PHA Type II files into Sherpa
Integer_Type load_pha2([Integer_Type], {String_Type | Struct_Type})
Success/Error Return Values: 1/0
Arguments:
(1) Data set number (default 1)
(2) PHA Type II filename, or
(2) S-Lang variable output by readpha()
The function load_pha2() loads data from a PHA Type II file
into a Sherpa data set. If the file contains the header keywords
BACKFILE, RESPFILE, and/or ANCRFILE,
the background, RMF, and/or ARF file contents are automatically read in as
well. If the file contains the columns BACKGROUND_UP and
BACKGROUND_DOWN, their contents are combined into a single
background dataset, which is then read in.
Note that there is no equivalent function currently for inputting
background data from a PHA Type II file.
See the related Sherpa command
READ
for more information.
sherpa> () = load_pha2(,"example.pha")
sherpa> () = load_pha2(1,"example.pha")
These two commands will load data from the PHA Type II file into
Sherpa source data sets, starting with data set 1.
sherpa> foo = readpha("example.pha")
sherpa> () = load_pha2(1,foo)
Here the data are read into the S-Lang variable ``foo''. The
load_pha2() function then reads the data from
arrays which are part of the variable ``foo''.
- chandra
-
guide
- sherpa
-
autoest,
back,
berrors,
bsyserrors,
coord,
data,
dataspace,
fakeit,
feffile,
group,
guess,
is_subtracted,
load,
load_arf,
load_ascii,
load_back_from,
load_backset,
load_dataset,
load_fitsbin,
load_image,
load_inst,
load_inst_from,
load_pha,
load_rmf,
read,
set_analysis,
set_axes,
set_backscale,
set_coord,
set_data,
set_exptime,
set_subtract,
set_weights,
setback,
setdata,
subtract,
ungroup,
unsubtract,
use
|