next up previous contents
Next: Command-line options Up: Starting the program Previous: The line display window   Contents

From the command line

Since not all platforms support the GTK+ library, but also for scripting, the fit procedure can also be started from the command line. This is done by calling:
cora_fit

If no parameter file is supplied, a standard file fit.inp is created with cora_inp (cf. Sect. 6) before starting. A different parameter file name can be specified by typing:
cora_fit -i parameter_file .
A spectrum file in the right format (Sect. 5.1.1) is mandatory and is by default expected to be named spectrum.dat. If you want to specify the spectrum with another file name, this can be done by typing:
cora_fit -i parameter_file -s spectrum_file

Another option is the re-plotting option -r resfile, where resfile indicates a text file with seven columns containing line data with wavelengths $\pm$ errors, line widths $\pm$ errors, amplitudes $\pm$ errors and a source background value in units [counts/bin]. Such a file in the correct format is created as fit output when activating the parameter ires to write the fit results into an ASCII file (default cora.dat); cf. Sect. 8. Another output file name can be specified with the option -o outfile.

When experimenting, it may be desirable to have a quick way of selecting lines for fitting without having to change the parameter file. This is provided by calling the program with
cora_fit -g.
After loading the spectrum, an interactive X-window with the complete spectrum will pop up the same way as with the GUI option Options/Graph (Sect. 5.2.1). The left mouse button is used to set boundaries for zooming into smaller parts of the total spectrum. Selecting lines is done with the right mouse button. Further commands to be entered from the keyboard are explained on top of the graph.


next up previous contents
Next: Command-line options Up: Starting the program Previous: The line display window   Contents
Jan-Uwe Ness
2003-05-23