Module function to load data from ARF and RMF files into Sherpa. load_instrument is an alternate name.
Integer_Type load_inst({String_Type | Struct_Type},{String_Type |
Struct_Type})
Success/Error Return Values: 1/0
Arguments:
(1) ARF filename, or
(1) S-Lang variable output by readarf()
(2) RMF filename, or
(2) S-Lang variable output by readrmf()
This function loads data from an ARF file and an RMF file into
Sherpa, assigning them to an automatically named
RSP model instance.
Note that the order (ARF,RMF; RMF,ARF) does not actually matter, except
that currently an unsuppressible library error message appears when
the RMF is listed first. This error message may be safely ignored.
See the related Sherpa models
RSP,
FRMF,
and
FARF
for more information.
sherpa> rmfst = readrmf("example.rmf")
sherpa> () = load_inst("example.arf",rmfst)
In this example, RMF data are read from example.rmf and put
into the S-Lang variable ``rmfst''; this variable is then passed
as an argument to load_inst(). The ARF data are
read directly from the example.arf file.
- 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_from,
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
|