     This package of programs is intended for USER-AIDED obtaining
of (x,y) table from the BMP-file with spectrum.

     The situation when this can be suitable: imagine that we have
the spectrum obtained long time ago, so it is present only as a picture 
on paper; or we need to compare our spectrum with the spectrum presented 
in some article. Having scanned it, we obtain BMP file; then we can use
the given program.

     The use: 

 - First we "clean" the BMP file in some graphical redactor, that the 
line which represents the spectrum would not be overlapped with grid, 
other spectral curves, 
etc. in its vicinity. This is necessary - otherwise the program could
be unable to distinguish, what is the spectrum and what is not. 

 - Then it is recommended (but not necessary) to rotate the spectrum 
by 90o in such a manner that frequency would change in vertical 
direction, and the absorbance - in horizontal direction; this 
facilitates the automatic recognition of the spectral curve. It is
also desirable that the low-frequency part would correspond to
the bottom of the picture (for avoiding excessive sorting).

 - It is also desirable, if the axes on the picture in BMP file 
strongly deviate from horizontal and vertical directions, to
rotate the picture in graphical redactor by small angle to made them
oriented properly; otherwise, there is possible the situation when,
during scanning of the BMP file, the program first sees the peak, 
and only later the slopes of the band; the orientation can (and 
must) be finally corrected at the stage of running IXIY_XY (see
below), but if the deviation from horizontal and vertical directions
if strong, we have excessive work on the stage of sorting
of the points.

 - The resulting spectrum should be saved as black-and-white BMP, 
with black spectrum on white background (although some other BMP 
types are also supported). Before saving, it could be necessary
to change all grayscale colors to black.

 - Then we run BMP_IXIY. It interprets the BMP format and creates the
output file IXIY.BIN which contains the table of the points (as 
pairs of integer numbers - coordinates (ix,iy) in the BMP file).

 - Then we run IXIY_XY, preferably under interactive environment. The
interactive environment is preferable because on this stage one should make
numerous changes in the text. We change the function which describe 
the correspondence between the coordinates of the points in the 
BMP file and in our units (e.g., cm-1 and % of transmittance; see the
variable part of the source), until the grid in the BMP file will 
coincide with the grid drawn by the program. Then we change the 
description of the points which belong to the spectrum. 
As far as the programs tries to "trace" the curve, in 
the favourable cases it is sufficient to describe only the 
beginning of the spectral curve. But at disruptions, where the
points are absent, it looses the curve; moreover, at steep slopes 
it also can ignore necessary points. In these cases, it is 
necessary to change the description (which typically has the 
form: (x,y) belongs to some rectangle area, or to some other 
rectangle area, or to some other, and so on).
     At normal work, the spectral curve during processing must 
be painted as coloured, while the grid etc. must remain white. 
     The output file XY.BIN contains the pairs of real numbers, 
e.g., (nu,R).

 - If only some isolated fragments were misidentified as parts of 
the spectrum, we can describe them in program DOVODKA and delete; 
one should pay attention to have the same name of the corrected 
file as the original uncorrected file had.

 - If the frequencies decrease, it is recommended to invert then with
the program INVERT. The same note about the name of the file is 
valid here, too.

 - Then we run SORT_XY - this program sorts the points in the order
of the increase of frequencies.

 - Then we run RAVNOMER; this program produces the equidistant intervals
and calculates the average value of the spectral curve within these
intervals. The output file is called RAVNOMER.PRN .

 - If necessary, we run SGLAZH - smoothing of the resulting spectrum.
     This package was really used for inputting the spectra;
unfortunately, the real examples of spectra are very bulky, so I do not 
present them here, but if somewho will ask, I shall send them.

     The file PPV_.BMP is added for illustration; the programs
are "tuned" for processing of this file.

     (the end)

