Here are given instructions to install properly 
the programs of the SEDEM package.
It s very simple in fact, and needs only a few minutes of attention.

First, you might unpacked the files contained in the .zip file. 
Use the pkunzip.exe or winzip.exe utility to decompress the 
sedem.zip file. Before unzipping, make sure to chose 
the option (pkunzip -d) to preserve the folder structure. 

The unzipped files and folders should be stored in a folder 
named "exafs". You may choose to put this folder anywhere, 
for example, you may put it in c:\program files\
or in c:\progra~1\ 
(This later name is the one proposed by windows when 
restricting to the DOS rules for file or folder names : xxxxxxxx.xxx)
The content of this exafs folder is the following :

1. executables

cumul.exe 
modl.exe
xafs.exe
xafsSum.exe


2. accessory files and folders required to run the programs.
These items must all remain in the same directory as the 
executables : 

Borland pascal library files : 
rtm.exe
dpmi16bi.ovl
egavga.bgi
litt.chr

3. the "atom" folder containing the two files 
Kpolyn.dat and Lpolyn.dat. 
This folder must  remain in the same directory as the 
executables.

4. the "kale" folder containing the four self extracting files
Swk250.exe, Swk400.exe, Swl250.exe and Swl400.exe, 
plus the Mckale documentation file Readme.doc.
This folder must  remain in the same directory as the 
executables.

5. The "teo" folder containing the forward scattering properties of 
the oxygen atom, Frw.08.
This folder must  remain in the same directory as the 
executables.

Before starting with the modl.exe, you must decompress 
the four files contained in the McKale folder,  just by clicking
on each of them.
 
3. Textfiles folder

This folder contains the documentation : 
The readme.txt (this file)
The xafs_doc.txt
The modl_doc.txt

4. the "prep", "fitt" and "cumul" folders.

This folders are not supposed to remain in the same directory (or folder) 
as the executables because they are folders prepared 
to contain data and result files owing to the user(s). The 
subfolder structure of these folder MUST be preserved. 
The reason is that when using the programs, 
the user will save files, and the program takes care of the file 
names, in order to re-use the files if needed. 
This is a little bit tricky, because the programs uses the 
DOS restricted file name type. 
Consequently, you are strongly advised to create one or several
 "exafs"  directory(ies), in any location you like, for example
c:\users\xafsteam\jeremy\exafs\,
c:\users\xafsteam\isabelle\exafs\,
etc...
and to displace (or copy) the "prep", "fitt", and "cumul" folders 
to these directories.
In this manner, data and results of each user will not interfere
with data or results of any other user nor with the program folder.

The program automatically creates missing subfolders
in \prep and \fitt folders. The only one which is required 
before starting is \prep\data\ in which at least ONE data file 
must be stored in the form :
xxxxxx.dat with SIX character maximum before the point. 
The cumul folder must contain subfolders \data and \res, 
and these must be created manually.
The data file is a text file, which may contain up to 24 columns. 
Any header line preceding the actual data lines MUST begin
with a "#" character in first column.    
 
____________________________________________________________

In order to complete the installation correctly, each user might
create an alias, which calls the executable and tells the program  
where to read the data and write the results.

The way to do this depends on whether you run from DOS or
from windows, and, in this latter case, on which version 
of windows you run.

____________________________________________________________

1. FOR DOS USERS

create four batch files xafs.bat, modl.bat, cumul.bat, xafssum.bat
in your USER exafs directory.
The content ot these batch files should look as follows :
 
for the xafs.bat file :
c:\path1\exafs\xafs.exe path2
cls

for the modl.bat file : 
c:\path1\exafs\modl.exe path2
cls

for the cumul.bat file : 
c:\path1\exafs\cumul.exe path2   
cls

for the xafssum.bat file : 
c:\path1\exafs\xafssum.exe path2
cls

Path1 is the FULL path where to find the exafs directory 
where are stored the executables. For example c:

Path2 is the FULL path where to find the exafs directory
where are stored the users data and results. For example c:\users\isabelle   

____________________________________________________________
 
FOR WINDOWS 3.x USERS

1. First create two .pif files using the pif editor in order to be able
to allocate memory to xafs.exe and modl.exe,
the xafs.pif and the modl.pif,  in which you specify the command_line 
c:\path\exafs\xafs.exe  
c:\path\exafs\modl.exe 
Path is the FULL path where to find the exafs directory 
where are stored the executables. For example c:
Then, into the pif file, allocate memory as follows. 
Write :   
	-1 and   -1 in the boxes relative to conventional memory
	 0 and    0 in the boxes relative to superior memory
      1800 and 1800 in the boxes relative to XMS for xafs.exe
      4000 and 4000 in the boxes relative to XMS for modl.exe

Then, save your pif files in the default \windows\ directory.

xafssum.exe and cumul.exe do not require explicit memory allocation,
thus no *.pif file is required for them.


2. Then create programs short_cuts :  xafs, modl, cumul and xafssum,
using the "new program" command of the program manager.

specify the command line : 
c:\windows\xafs.pif c:\path2  
c:\windows\modl.pif c:\path2
c:\path1\exafs\cumul.exe c:\path2
c:\path1\exafs\xafssum.exe c:\path2

Path1 is the FULL path where to find the exafs directory 
where are stored the executables. For example c:

Path2 is the FULL path where to find the exafs directory
where are stored the users data and results. For example c:\users\isabelle   

and choose an Icon in your own icon collection or in progman.exe or in moricons.dll. 
Put  icons in the group of programs of your choice, for example "exafs".

____________________________________________________________

FOR WINDOWS 95 or Windows NT USERS
 
The process is very simple : click with the mouse right button
on the icon of the executable and choose "create a short_cut".
Then displace the short_cut to your user's exafs folder.
Click on the short_cut with the mouse right button and choose
"properties". Go to "program" and enter the command line

c:\path1\exafs\xafs.exe c:\path2  
c:\path1\exafs\modl.exe c:\path2  
c:\path1\exafs\cumul.exe c:\path2  
c:\path1\exafs\xafssum.exe c:\path2  

Path1 is the FULL path where to find the exafs directory 
where are stored the executables. For example c:

Path2 is the FULL path where to find the exafs directory
where are stored the users data and results. For example c:\users\isabelle

Mark the option "close when exit".

Remark : Users running a very fast computer might have problems 
starting the programs. 
With Windows 95 the solution is not known.
With Windows NT, in the properties window of the short_cut
click on the button "Windows NT" and mark the option
"Emulate a compatible Clock". 

____________________________________________________________

This ends the instructions of installation.   

