Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: 13 March 2017

Frequently Asked Questions


This page provides answers to common questions about Sherpa functionality; feel free to submit a new one via the CXC Helpdesk.



Sherpa

Command Comparison

  1. What is the difference between the 'load', 'read', and 'unpack' Sherpa commands?
  2. What do the Sherpa 'get' commands do?
  3. How do Sherpa 'load' commands handle ASCII files?
  4. How can I convert my Sherpa 3.4 scripts to Sherpa 4.9?

Plotting

  1. How can I modify a single plot in a display containing multiple plots?
  2. How can I plot a model-fitted spectrum in photon flux units (photons s-1 cm-2 keV-1)?
  3. How can I plot an unfolded source spectrum in flux units, independent of a model spectrum?
  4. How can I set the axis scaling of plots to linear or logarithmic?
  5. How can I change the size of axis labels in a plot?
  6. How can I plot the ungrouped fitted source model on my grouped data?
  7. How can I plot my data in units of Counts versus Energy(keV)?
  8. How can I create multiple plots in the same window?
  9. How can I include multiple datasets in the same plot?

Fitting

  1. How can I define my own fit statistic in Sherpa? [Updated]
  2. How can I specify which measurement errors to use in fitting a PHA data set?

Parameter Estimation

  1. What do the WARNING messages returned by the confidence methods mean?

Computer Environment

  1. How can I preserve the output of a show command in my terminal window after quitting the command?

PHA Data

  1. How does Sherpa apply the BACKSCAL value recorded in the header of a spectrum file?
  2. How does Sherpa calculate errors on PHA data values given as a rate rather than counts?
  3. How does Sherpa handle Level=3 PHA spectra downloaded from the Chandra Source Catalog?
  4. How can I simulate a PHA data set in Sherpa, with/without added Poisson noise?
  5. How can I group net counts?
  6. Why is there data being plotted or fit outside the energy range I noticed?

Image Data

  1. How can I set the coordinate system to be used in the analysis of my image data?

Model evaluation

  1. How do I change an XSPEC xset variable?
  2. How do I change the AtomDB version used by XSPEC Apec models?
  3. What is the function of a Sherpa model's "cache" attribute?

Parallelization

  1. How can I specify the number of system cores to use for computationally intensive functions?

Python

Logging

  1. How can I log the command output from my Sherpa fitting session?
  2. How can I suppress the screen output from Sherpa commands?

Scripting

  1. How can I assign XSPEC-style numbering to Sherpa model parameters for use in my script?

Last modified: 13 March 2017
Smithsonian Institute Smithsonian Institute

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-2016. All rights reserved.