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
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.
Changes in CIAO 4.12
PAGER environment variable is no-longer used
Paging of the screen output is now handled by Python rather than using an external tool defined by the PAGER environment variable. This means that paged output should now appear in Jupyter notebooks.
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.