Tartarus Spectral Fitting


TARTARUS SPECTRAL FITTING: A QUICK INTRODUCTION


TCL procedures for use with ASCA data and xspec

To enable users to easily read in source and background spectra, along with the appropriate arfs and rmf files we have created one XCM file and some TCL procedures for use with the spectral fitting software XSPEC.

The .xcm file

An xcm file is an ascii file which is a set of saved commands for/from xspec. During our processing we save the fit you see on the web page, to a file sequence_webfit.xcm. You can start your analysis at the web fit by using

xspec - sequence_webfit.xcm

WARNING 1: If the fit failed during auto-analysis you may not have the xcm file, or it may fail to start you in a sensible place within xspec. WARNING 2: The fits on the web pages were performed excluding the iron K band (5 - 7.5 keV), then noticing those channels for the plot. If you refit the data with the 5 - 7.5 keV data, then a different solution will be found. The Tartarus continuum slope should be recovered when the 5 - 7.5 keV data is included but an additional model component is included for any iron line.

The TCL procedures

The TCL procedures work in a slightly different way to xcm files, they allow the user to pass arguments to xspec, and can be a good way of using the same model files for different sequences, as you could pass sequence number or redshift etc to the routine. These TCL procedures are set up tp ignore the bad data channels automatically. These TCL procedures must first be defined and then are invoked along with the appropriate arguments in each case (usually sequence number and source redshift). As it can be tedious to set up the model (when allowing an independant normalization of each dataset, the parameters must be prompted for 4 times, and linked together, except for the constants) we also provide some command files to automatically set up a simple model.

To use, define at the xspec prompt and then invoke along with the appropriate arguments. e.g.

               XSPEC 10.00 16:58:48 13-Aug-98
http://legacy.gsfc.nasa.gov/docs/xanadu/xspec/u_manual.html

XSPEC> @start.tcl
XSPEC>  proc start {arg1 arg2} {;data 1:1 ${arg1}_sis0_src_20;data 2:2 
${arg1}_
sis ...
XSPEC> start 74002000 0.0008

button gif Procedures which read in the data:

data_in.tcl     -       has one argument, the seq
start.tcl       -       has two arguments, seq and redshift

button gif Models (only):

These have one argument, which is redshift, unless otherwise noted.

2plmo.tcl       -       2 power-laws, same absorber
2plsepmo.tcl    -       2 power-laws, independently absorbed
mtabmo.tcl      -       warm absorber, 2 arguments, redshift 
                        & mtable name (in that order)
pcfmo.tcl       -       PL with partial-covering absorber
pexravmo.tcl    -       PL with reflection from neutral material
plgausmo.tcl    -       PL plus gaussian line
pldisklmo.tcl   -       PL plus diskline
plraymo.tcl     -       PL plus Raymond-Smith plasma, same absorber
plraysepmo.tcl  -       PL plus Raymond-Smith plasma, independently absorbed 


Icon for Tartarus home page CLICK HERE TO RETURN TO THE TARTARUS HOME PAGE

Tartarus Feedback:

Responsible Scientists, Jane Turner & Kirpal Nandra tartarus@olegacy.gsfc.nasa.gov
A service of the Laboratory for High Energy Astrophysics (LHEA) at NASA/ GSFC
Responsible NASA Official: Phil Newman

Privacy, Security, Notices