PyXspec: Python interface to XSPEC spectral-fitting program
Abstract
PyXspec is an object oriented Python interface to the XSPEC (ascl:9910.005) 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; everything in PyXspec is accessible by importing the package xspec into your Python script. PyXspec can be utilized in a Python script or from the command line of the plain interactive Python interpreter. PyXspec does not implement its own command handler, so it is not intended to be run as the Python equivalent of a traditional interactive XSPEC session (which is really an enhanced interactive Tcl interpreter).
- Publication:
-
Astrophysics Source Code Library
- Pub Date:
- January 2021
- Bibcode:
- 2021ascl.soft01014G
- Keywords:
-
- Software;
- NASA