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.

22<br />

3.12 Breaking With Ctrl-C<br />

Ctrl-C can be used to break out of the data, chain, error, fit, and steppar<br />

commands. If a Ctrl-C is entered elsewhere, it will have no effect.<br />

When a break is entered during the fitting commands (error, fit, and steppar),<br />

the fit will proceed until the end of the current fit iteration (ie. current lambda value when<br />

using Levenberg-Marquardt) before breaking. This is to ensure the program remains in a<br />

stable well-defined state. Therefore on slower machines, a user may notice a slight delay<br />

before the program actually breaks. Ctrl-C breaking is currently only implemented for<br />

the Levenberg-Marquardt fitting method.<br />

Breaking is implemented for the data command primarily for users who load a<br />

large number of Type-II spectra with one data command. So if you enter<br />

<strong>XSPEC</strong>12> data my_data{1-1000}<br />

and decide it is taking too long to load, you can break out at any time. However,<br />

if you do choose to break, all spectra loaded from that particular data set will be lost. For<br />

example, if the command below is entered and a Ctrl-C is sent while the spectra from<br />

my_data2 are loading, the 50 spectra from my_data1 will be retained while none will be<br />

from my_data2:<br />

<strong>XSPEC</strong>12> data my_data1{1-50} mydata2{1-50}<br />

3.13 Customizing <strong>XSPEC</strong><br />

The <strong>XSPEC</strong> environment can be customized using two separate files, both of<br />

which are searched for in the directory<br />

$HOME/.xspec<br />

The first file, Xspec.init contains a number of settings that control items in<br />

<strong>XSPEC</strong>. An abridged version of this file is reproduced below.<br />

# <strong>XSPEC</strong> Initial settings file. 07/2009<br />

# Valid setting lines consist of two strings in the format Key: Value<br />

# leading and trailing blanks are ignored for the key, leading<br />

blanks/tabs ignored for<br />

# the value. Invalid settings (no colon) are ignored, keys valid in<br />

format but not<br />

# implemented are simply read but not used.<br />

#<br />

#<br />

# Do not modify above this line<br />

################################################<br />

#<br />

# User default local model directory<br />

# example code may be found in the source tree at:<br />

# ${PATH_TO_SRC}/src/XSModel/Model/LocalModelTemplate

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

Saved successfully!

Ooh no, something went wrong!