Display the data sets
show_data([id, outfile=None, clobber=False] )
The show_data command displays the data sets which have been loaded into Sherpa.
- id - the id of the dataset to use; default is to show information for all available datasets.
- outfile - name of the file in which to store the information
- clobber - a Boolean switch which indicates whether or not the 'outfile' should be overwritten, if the file already exists; default=False
The command output looks like:
Data Set: 1 Filter: 0.2993-7.0007 Energy (keV) Noticed Channels: 21.0-480.0 name = case1_1.pha channel = Float64 counts = Float64 staterror = None syserror = None bin_lo = None bin_hi = None grouping = None quality = None exposure = 50000.0 backscal = 1.0 areascal = None grouped = False subtracted = False units = energy response_ids =  background_ids =  RMF Data Set: 1:1 name = core1.rmf detchans = 1024 energ_lo = Float64 energ_hi = Float64 n_grp = Int16 f_chan = UInt32 n_chan = UInt32 matrix = Float64 offset = 1 e_min = Float64 e_max = Float64 ARF Data Set: 1:1 name = core1.arf energ_lo = Float64 energ_hi = Float64 specresp = Float64 bin_lo = None bin_hi = None exposure = 34397.739985
The behavior of the screen output is determined by the user's $PAGER environment variable setting, which is usually a variant of "more." To disable paging within show_all() - i.e. print the entire contents, even if it scrolls offscreen - change this setting to "cat" before starting Sherpa:
unix% setenv PAGER cat unix% sherpa
Print information on all datasets to the screen.
sherpa> show_data(2, "sherpa.data", True)
Write the information for dataset id=2 to the file "sherpa.data", clobbering any file with the same name.
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.