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.
