Since not all platforms support the GTK+ library, 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
input-file name can be specified by typing:
cora_fit -i otherinputfile .
A spectrum file in the right format (Sect. 5.1.1) in mandatory is by
default expected to be named spectrum.dat.
If you want to specify another spectrum file than spectrum.dat, 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 lines containing line data with
wavelengths
errors, line widths
errors, amplitudes
errors and
a source background value in units [counts/bin]. A file with the correct format
is created when activating the parameter ires to plot the fit results into
a file (default cora.dat); cf. Sect. 8. Another output file
name can be specified with the option -o outfile.
When experimenting it may be desired to have a quick way of selecting lines for
fitting without having to change the input-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, where lines can be selected by mouse click.
The left mouse button is used to set boundaries for viewing small 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.