XSPEC Tcl scriptsThe XSPEC command interface is now mediated through the Tcl scripting language. This means that many new powerful features are available eg looping, conditionals, and ascii file i/o. We have created a simple example script to demonstrate these features. It should be possible to use this script as a template to do many iterative operations with xspec. To run it just give xspec the command @tclex.tcl.
For the more ambitious a number of useful Tcl scripts have been written by Andy Ptak. He has made available a gzipped tar file. To run any of these scripts within xspec they must first be loaded using source tcl_filename. xspec will write the names and argument strings for the tcl procedures that have just been loaded. To get more information on a tcl procedure give xspec the command tcl_procedure ?.
Xspec Home Page
HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public
Last modified: Friday, 25-Oct-2019 12:30:13 EDT
HEASARC support for unencrypted FTP access ended on September 20, 2019. Please see this notice for details.