26.01.2015 Views

XSPEC User's Guide

XSPEC User's Guide

XSPEC User's Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18<br />

groups. When files are read in they can be labeled as belonging to a particular data group.<br />

When a model is defined a set of model parameters is allocated for each data group.<br />

These parameters can all vary freely or they can be linked together across data groups as<br />

required.<br />

To set up data groups, the data command should be given as in the following<br />

example :<br />

<strong>XSPEC</strong>12> data 1:1 file1 1:2 file2 2:3 file3<br />

which sets up two data groups. The first data group comprises data sets from file1<br />

and file2, and the second data group takes the data set from file3. Now when a model is<br />

defined, <strong>XSPEC</strong> will give two sets of model parameters, one for the first datagroup and<br />

one for the second.<br />

3.8 Model Commands<br />

<strong>XSPEC</strong> allows users to fit data with models constructed from individual<br />

components. These components may be either additive, multiplicative, mixing, or<br />

convolution. Multiplicative components simply multiply the model by an energydependent<br />

factor. Convolutions apply a transformation to the model component they<br />

operated on whereby the output can be affected by a range of input energies, such as in<br />

smoothing operations. Mixing components are two dimensional and designed to<br />

transform fluxes between different spatial regions (such as in projection). Multiplicative,<br />

and convolution components can act on individual components, on groups of<br />

components, or on the entire model, whereas mixing transformations apply to the whole<br />

model.<br />

The model command defines the model to be used and prompts for the starting<br />

values of its parameters. The user also can set the allowed ranges of the parameter.<br />

Parameters can be linked to an algebraic function of the other parameters, and unlinked<br />

using the untie command. The value of an individual parameter can be changed with the<br />

command newpar (and the current setting queried with newpar 0). Parameters can be<br />

fixed at their current value with the freeze command and allowed to vary freely with the<br />

thaw command. Individual components can be added or subtracted from the model using<br />

addcomp, delcomp, and editmod. The plasma emission and photoelectric absorption<br />

models require an assumption about relative elemental abundances.<br />

The flux command calculates the flux from the current model in the given energy<br />

range. This energy range must be within that defined by the current response matrix. If a<br />

larger energy range is required, then the energies command can be given to compute the<br />

model over the desired range. The lumin command calculates the luminosity for the<br />

source redshift given. The eqwidth command determines the equivalent width of a model<br />

component, usually a line. The user of either of these last two commands should read the<br />

help descriptions carefully. The Tcl script addline can be used to automatically add lines<br />

to a model. These can be identified using identify and modid.<br />

New model components which can be described by a simple algebraic formula<br />

can be set up using mdefine and used in the same way as the standard models except they<br />

will run slower being interpreted rather than compiled.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!