Module function to load data from ARF and RMF files into Sherpa source or background instrument models.
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()
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.
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.
- 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_pha,
load_pha2,
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
|