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

Skip the navigation links
Last modified: December 2008

URL: http://cxc.harvard.edu/sherpa4.1/set_analysis.sl.html
AHELP for Sherpa 4.1

set_analysis

Context: sl.sherpa

Synopsis

Set the units for spectral analysis

Syntax

set_analysis([id]; quantity, [type,] [factor]);

Description

The set_analysis command sets the units for spectral analysis.

  • id - the id of the dataset to use; default is to change the analysis setting for all datasets
  • quantity - the analysis setting: channel (or "chan" or "bin"), energy (or "ener"), wavelength (or "wave")
  • type - unit type for the y-axis of a plot: rate (the default) or counts
  • factor - integer factor for multiplying the amplitudes in each bin (the independent axis is multiplied to the dependent axis); default=0

Example 1

sherpa> set_analysis("wave");

Set the analysis quantity to wavelength for all datasets.

Example 2

sherpa> set_analysis(2, "chan");

Set the analysis quantity to channel for a dataset id=2.

Example 3

sherpa> set_analysis(1, "ener", "counts", 2);

Set the plot units for dataset id=1 to keV (x-axis) and counts*keV^2 (y-axis).

Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

Last modified: December 2008



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.