Inputs the contents of one or more source data files.
sherpa> DATA [#] <filespec> [, [#] <filespec>,...]
where # specifies the number of the dataset to be associated with this
source data file (default dataset number is 1).
Alternative means of reading in source datasets involve using the
load functions of the Sherpa/S-Lang module
(e.g., load_pha).
The help file for the READ command explains the <filespec>
definition and has a listing of allowed file types; see also the related
commands SOURCE, ERRORS, and SETDATA.
This command is able to take any Data Model virtual file
specification (see "ahelp dmsyntax"). If you can do
unix% dmcopy "infile.fits[spec 1][spec 2]" outfile.fits
you can also do
sherpa> data "infile.fits[spec 1][spec 2]"
This is especially useful when working with very large files. For
example:
sherpa> data "evt.fits[bin sky=4][opt mem=100]"
bins the event file by a factor of four and allocates additional
memory. A similar command (omitting the binning factor) can be used
to read in an image.
Input an ASCII data file having a .dat extension name:
This command reads the first two columns of the
ASCII data file example.dat, as dataset number 1.
Input an ASCII data file not having a .dat extension name:
sherpa> DATA example.qdp ASCII 1 2
This command reads columns 1 and 2 of the ASCII data
file example.qdp, as dataset number 1.
Input a FITS image data file:
sherpa> DATA 3 data/example_img.fits FITS
This command reads the FITS image data/example_img.fits,as
dataset number 3.
- chandra
-
guide
- sherpa
-
autoest,
back,
berrors,
bsyserrors,
coord,
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,
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
|