Last modified: 12 December 2024

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.