Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: 13 March 2017

What do the Sherpa 'get' commands do?


The 'get' commands simply return the command-specific information that has been written to the user-specified data set ID. For example, the get_analysis command is used to access the current units setting for a PHA data set which has been loaded, as follows:

sherpa> load_pha(3, "3c273.pi")        

sherpa> get_analysis(3)         
        'energy'

This command returns the string 'energy', identifying the units setting for data set 3.

Some commonly used 'get' commands:

For the full list of available 'get' commands, type "get* ?" at the Sherpa prompt.

Please refer to the Sherpa ahelp pages for a full description of each command, including examples of usage.



Last modified: 13 March 2017
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2017. All rights reserved.