skip to content
 
ASCA Guest Observer Facility

How to use XSPEC gain command


Users can investigate the effects of the energy scale offset on their data by using the gain fit command in xspec. Since this command works by shifting the energy boundaries of the response matrix, rather than by changing the matrix elements themselves, it should be regarded as an approximation. However, it does provide a simple first step toward addressing the problem. Here's how to proceed:

  1. Fit the spectrum using the nominal gain.

  2. If applicable, fix the energies of line features at their expected values. For example, fix the energy of the fluorescent line from neutral iron at 6.4 keV.

  3. At the xspec prompt type gain fit, after which you'll be prompted for the initial values of the slope and the offset.

  4. Enter 1,-1 for the slope (to make it a fixed parameter) and hit return for the offset (to make it a free parameter).

  5. Next use the fit command to refit the data and derive the model parameters along with the best-fitting offset which will be listed as the last parameter. It should come out to be a few tens of eV.



If you have any questions concerning ASCA, visit our Feedback form.

This file was last modified on Monday, 13-Sep-1999 15:37:10 EDT

NASA Astrophysics

  • FAQ/Comments/Feedback
  • Education Resources
  • Download Adobe Acrobat
  • A service of the Astrophysics Science Division (ASD) at NASA/ GSFC

    ASCA Project Scientist: Dr. Nicholas E. White

    Responsible NASA Official: Dr. Andy Ptak

    Privacy Policy and Important Notices.