Module function to determine if whether the specified dataset is background-subtracted.
Integer_Type is_subtracted([Integer_Type])
Arguments:
(1) Dataset number (default 1)
This function returns 1 if the background has been subtracted in
the specified source dataset.
See the related Sherpa commands
SUBTRACT and
UNSUBTRACT for more information.
Determine if dataset 1 is background subtracted:
sherpa> DATA example.pha
The inferred file type is PHA. If this is not what you want, please
specify the type explicitly in the data command.
WARNING: using systematic errors specified in the PHA file.
RMF is being input from:
<directory_path>/example2.rmf
ARF is being input from:
<directory_path>/example2.arf
Background data are being input from:
<directory_path>/example2_bkg.pha
sherpa> is_subtracted
0
sherpa> SUBTRACT
sherpa> is_subtracted(1)
1
The 0 returned from the first call indicates that no, dataset 1 is
not background subtracted. (Unlike XSPEC,
Sherpa does not automatically subtract background
data upon input.)
The 1 returned from the second call, issued after the
SUBTRACT command, indicates that yes, dataset 1 is
now background-subtracted.
- chandra
-
guide
- sherpa
-
autoest,
back,
berrors,
bsyserrors,
coord,
data,
dataspace,
fakeit,
feffile,
group,
guess,
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,
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
|