Skip to main content

Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.

HEASoft and XSPEC are now available as conda packages. See details ....


Xspec: An X-Ray Spectral Fitting Package

Version 12.15.1 Now Available

Helpful information available includes:

Xspec in Python

PyXspec [PDF] is an object oriented Python interface to the XSPEC spectral-fitting program. It provides an alternative to Tcl, the sole scripting language for standard Xspec usage. With PyXspec loaded, a user can run Xspec with Python language scripts or interactively at a Python shell prompt.

Several Python-specific resources are listed with the external guides.


The latest Xspec reference is Arnaud, K.A., 1996, Astronomical Data Analysis Software and Systems V, eds. Jacoby G. and Barnes J., p17, ASP Conf. Series volume 101.

Xspec 12 was developed by: Keith Arnaud, Ben Dorman, and Craig Gordon
HEASARC Software Development, Astrophysics Science Divsion
Code 660.1, NASA/GSFC, Greenbelt MD 20771

Please send comments, questions, and bug reports to xspechelp@athena.gsfc.nasa.gov

Disclaimer of endorsement

The U.S. government, including NASA, neither endorses nor guarantees in any way the external organizations, services, advice, or products included in the external website links. Furthermore, the U.S. government neither controls nor guarantees the accuracy, relevance, timeliness, or completeness of the information contained in non-government website links.