| AHELP for CIAO 4.4 Sherpa v2 | show_data |
Context: info |
Synopsis
Display the data sets
Syntax
show_data([id, outfile=None, clobber=False] )
Description
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[1024] counts = Float64[1024] 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 = [1] background_ids = [] RMF Data Set: 1:1 name = core1.rmf detchans = 1024 energ_lo = Float64[1077] energ_hi = Float64[1077] n_grp = Int16[1077] f_chan = UInt32[1500] n_chan = UInt32[1500] matrix = Float64[440721] offset = 1 e_min = Float64[1024] e_max = Float64[1024] ARF Data Set: 1:1 name = core1.arf energ_lo = Float64[1077] energ_hi = Float64[1077] specresp = Float64[1077] 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
Example 1
sherpa> show_data()
Print information on all datasets to the screen.
Example 2
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.
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
See Also
- filtering
- show_filter
- info
- list_bkg_ids, list_functions, show_all, show_bkg_model, show_bkg_source, show_conf, show_covar, show_fit, show_method, show_model, show_proj, show_source, show_stat

![[Sherpa Logo]](../imgs/sherpa_logo_navbar.gif)