Advanced Features - Colors, Symbols, Configuration

Configuration File CONFIG.PRF

The CONFIG.PRF file contains initial parameters which are used as default values for the program. Modify them here, if you want to have the change permanet. Save the original CONFIG.PRF. It helps you to avoid difficulties. Format of the information in CONFIG.PRF must be preserved.

FORMAT :

line 1-15 :

Set of initial parameters for the data files (patterns) 1-5.

for each file line 1 color number see Colors
line 2 symbol see Symbols
line 3 file type see File types

line 16 X-ray tube (two letters e.g. Cu)
line 17 (empty)
lines:
18 Chi angle (for j goniometer)
19 Omega angle (inclination from the symmetric position)
20 Polarization ratio of monochromator (cos a of monochromator)
21 Polarization of radiation
22 Film thickness (in cm)
23 Linear absorption coefficient
24 Seemann-Bohlin geometry (1 for yes, 0 for no);
25 Transmission geometry ( - " - );
26 Angle of incidence (used only for SB)
27 Radius of goniometer (used only for SB)
28 Radius of X-ray tube (used only for SB)
29 Absorption coefficient of the air (used only for SB)
30 Intensity ratio K
a2/Ka1
31 Multiplication factor for shapes of
a2 and a1 (Pearson)
(e.g. A4(K
a2)= mult.fact * A4(Ka1))
32 Multiplication factors for widths of - " -
33 Multiplication factors for shape asymmetry

Parameters for Plotter :

35 Origin of graph (X,Y)
36 Size of graph in mm (X,Y)
37 Velocity
38 Paper format (only A4 or A3)
39 Rotation (only 0 or 90)
40 label on X-axis
41 label for X unit
42 label on Y-axis
43 label for Y unit
44 pen for frame
45 division of X division of Y decimal places of X decimal places of Y
46 draw labels on axes (1... for yes, 0 for no)
47 label height label width slant
48 pen for graph
49 symbol
50 line type
51 pen for label

lines 52,54,56,58,60,62,64,66 (comments enclosed in {}, lines can be omitted)

line 53 Path for DAT files
line 55 Path for SIM files
line 57 Path for RIE files
line 59 Path for BAR files
line 61 Path for GRF files
line 63 Path for PLT files
line 65 Path for PRN files
line 67 Path for FIT files
line 69 Path for PCX files

next line {}

Formatting lines :

Put 1 in the following line if you like to change standard input formats, otherwise give 0.

The following lines are used only in the former case.Comments enclosed in {} are ignored.

next lines :
obligatory line *
empty or comment line
formatting line for DAT files
empty or comment line
formatting line for SIM files
empty or comment line
formatting line for RIE files
empty or comment line
formatting line for BAR files

Formatting line for input files have the following format :

n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14 n15 n16 n17 n18 n19

n1 - 1..column format X,Y,(FIT)
2..output file from DBWS-Rietveld
3..other formats

n2 number of line for Sample Name 0 if not given in data file
n3 number of line for Note 0 if not given in data file
n4 number of line for Starting Two Theta Angle - " -
n5 number of line for Last Two Theta Angle - " -
n6 number of line for Step - " -
n7 number of line for Time - " -
n8 number of line for Number of Points - " -
n9 number of line for Number of Peaks - " -
n10 number of the first line of the set of X (two theta) values 0 the set is not included in data file
n11 number of the first line of the set of Y (intensities) MUST BE EQUIDISTANT !!!
n12 number of the first line for reflection set
n13 number of column for X data, each, even single, number must be taken into account in column number determination
n14 number of column for Y data 0 if not given in data file
n15 number of column for peak position - " -
n16 number of column for peak height - " -
n17 number of column for peak intensity - " -
n18 number of column for FWHM - " -
n19 number of column for Pearson function exponent - " -

Positions n9, n12 and n15-19 are useful only for BAR files,i.e. lists of peaks and corresponding profile parameters.

Colors

Colors for text mode are loaded from the file COLORS.PRF. Different colors can be used for all windows in Graphics. They are loaded from configuration file SCREEN.PRF after the beginning. The background color of the main graphic window can be changed in Graphics by pressing ALT B.

Different colors can be used for the plotting of patterns. They are loaded from CONFIG.PRF after the start. They can be changed either in File parameters of Files submenu for each pattern separately or from Main menu in Graphics by pressing <ALT C> for the Current file .

Colors : (standard palette is used)
0 black 8 dark grey
1 blue 9 light blue
2 green 10 light green
3 cyan 11 light cyan
4 red 12 light red
5 magenta 13 light magenta
6 brown 14 yellow
7 light gray 15 white

FORMAT of COLORS.PRF:

The file 'COLORS.PRF' contains codes for the colors of main menu. There are 7 different sets (try which one is which). In each line the following colors are defined :

Frame, Header, Body of menu, Selected item, Highlighted character, Help row

Used notation: $bf (b... background color number, f... foreground color number) or only: f (b=0 automatically)

The files HERCMONO.PRF, CGA.PRF,EGA.PRF and VGA.PRF are provided for different graphic cards. They can be copied into the file SCREEN.PRF from which the initial parameters for windows in Graphics are loaded. If the file is not found, default values are used. It is not recommended to modify most of the lines.

FORMAT of SCREEN.PRF:

groups:

line 1-4 Main graphic window for the data plot
5-8 Main bottom text window in graphics
9-12 Top text window used mainly for help
13-16 2nd top text window used mainly for information line (current file)
17-20 3rd top window used for peak parameters
21-24 Window for plotting the residua (differencesbetween experimental and calculated profile).
25-28 Split window 1 (not used in program)
29-32 Split window 2 (not used in program)

each group contains the following parameters:

line 1 : left, right, top, bottom screen coordinates of window
line 2 : 1.. clip true or 2 .. clip false
line 3 : foreground color , background color
line 4 : text font, direction, character size, justification, horizontal , justification vertical
(text font : 0.. standard, 2.. small
direction : 0.. horizontal 1..vertical
character size : magnification factor 1-10
justification : 0 .. left bottom 1 .. center center, 2 .. right top)

It is not recommended to modify lines 2 , 4 and better also not 1.

line 33 length of X-axis ticks, length of Y-axis ticks, size of point markers in X-direction, size of markers in Y-direction

line 34 size of graphic menu bar (x and y)

line 35 (used for menu in graphics)
line 36 axis color, color of the graphic cursor
line 37 default position of graphic cursor (x and y coordinates)

Symbols :

The following symbols can be used for the plotting of diffraction patterns:
- solid line
. dots
x crosses
o circles

They are loaded from CONFIG.PRF after the start.

They can be changed either in File parameters of Files menu for each pattern separately or from Main menu in Graphics for the Current file after the pressing <ALT Z>.

Line types :

The following line types can be used (if the Symbol is '-'):
0 ... solid line
1 ... dotted line
2 ... center line
3 ... dashed line
4 - 7 as above but thick

They can be changed in File parameters of Files menu for each pattern separately.

Alpha 2 Elimination

The file 'ALPHA2.PRF' contains histograms for the alpha2 elimination. It can be updated and/or extended (see original reference).

format

line 1 radiation (upper case)
line 2 arms 3 term histogram
line 3 arms 5 term histogram
line 4 arms 7 term histogram
line 5 weights 3 term histogram
line 6 weights 5 term histogram
line 7 weights 7 term histogram
line 8 radiation
. .
. .
the set for WA must be the last one.