Module function to load data from an ARF file into Sherpa
Integer_Type load_arf(String_Type, {String_Type | Struct_Type})
Success/Error Return Values: 1/0
Arguments:
(1) Name of instrument (RSP) model instance
(2) ARF filename, or
(2) S-Lang variable output by readarf()
This function loads data from an ARF file into Sherpa,
assigning the data to the RSP model instance identified
by the first argument. If no such model exists before the call,
a new RSP model is created.
See the related Sherpa models
RSP
and
FARF
for more information.
sherpa> () = load_arf("rr","example.arf")
In this example, the data from the ARF file example.arf is
assigned to the RSP model ``rr''.
sherpa> arfst = readarf("example.arf")
sherpa> () = load_arf("rr","arfst")
sherpa> () = sherpa_eval("instrument 1 = rr")
Here the ARF data are read into the S-Lang variable ``arfst''. The
load_arf() function then reads the data from
arrays which are part of the variable ``arfst''.
- chandra
-
guide
- sherpa
-
autoest,
back,
berrors,
bsyserrors,
coord,
data,
dataspace,
fakeit,
feffile,
group,
guess,
is_subtracted,
load,
load_ascii,
load_back_from,
load_backset,
load_dataset,
load_fitsbin,
load_image,
load_inst,
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
|