About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: 18 June 2009

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 (S-Lang or Python help) is used to access the current units setting for a PHA data set which has been loaded, as follows:

#S-Lang
ciao% sherpa -l slang
#Python
ciao% sherpa -l python          

#S-Lang
sherpa> get_analysis(3);      
#Python
sherpa> get_analysis(3)         
        'energy'

This command returns the string 'energy', identifying the units setting for data set 3. Some commonly used 'get' commands are get_arf (S-Lang or Python help), get_rmf (S-Lang or Python help), get_data (S-Lang or Python help), get_bkg (S-Lang or Python help), get_coord (S-Lang or Python help), get_exposure (S-Lang or Python help), among many others.

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



Last modified: 18 June 2009


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