Module function to load data from an RMF file into Sherpa
Integer_Type load_rmf(String_Type, String_Type | Struct_Type)
Success/Error Return Values: 1/0
Arguments:
(1) Name of instrument (RSP) model instance
(2) RMF filename, or
(2) S-Lang variable output by readrmf()
This function loads data from an RMF 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
FRMF
for more information.
sherpa> () = load_rmf("rr","example.rmf")
In this example, the data from the RMF file example.rmf is
assigned to the RSP model ``rr''.
sherpa> rmfst = readrmf("example.arf")
sherpa> () = load_rmf("rr","rmfst")
sherpa> () = sherpa_eval("instrument 1 = rr")
Here the RMF data are read into the S-Lang variable ``rmfst''. The
load_rmf() function then reads the data from
arrays which are part of the variable ``rmfst''.
- 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_pha2,
read,
set_analysis,
set_axes,
set_backscale,
set_coord,
set_data,
set_exptime,
set_subtract,
set_weights,
setback,
setdata,
subtract,
ungroup,
unsubtract,
use
|