To install the MIA+EWS system on your UNIX computer:

1.  Define and create a root directory for the code and reference data.
	mkdir /home/user/mia+ews

2.  Copy the tar file  MIA+EWS-<version>.tar.gz into this directory

3.  Extract the tar file. e.g.:
	tar -xf MIA+EWS-<version>.tar.gz --ungzip  (gnu tar sytax)

4.  find out where gnu make lives on your system and call it:
	gmake cl_install

5.  relax

6.  In compiling the cfitsio library, the highest level routine uses a
    script called configure to try to determine your local system
    parameters and set up a corresponding cfitsio/Makefile.  If the
    diagnostic messages from the cfitsio compilations look crazier
    than usual, you have to edit the file $drsRoot/cfitsio/Makefile
    and insert reasonable values there.  Look especially at the
    definition of CFLAGS in this file.

    After fixing cfitsio/Makefile, compile cfitsio with "make", then
    return to the root directory of MIA+EWS and type
	gmake install_c

    This should recompile the c-code using the new Makefile.  If the
    make session ends with
	"mv: cannot stat `c/bin/disp*': No such file or directory"
    ignore this, the mv was already executed in the previous run of
    gmake.

7.  If the installation runs to completion, you can start MIA+EWS with
    the command "mia" in the main directory.

    A number of compilation messages should flash by, but
    hopefully no error messages.  Finally, you see a message
    giving the version of MIA+EWS you are using, who wrote it,
    and that it's free software.
    You should now be ready to start, e.g:

        cd,'data_directory'
        files1 = midiGuiS()
        output_tag = '/mydisk/reduced_data/source1'
        midipipe,output_tag,files=filesq
	x = xmdv(files1)
	x->gui

8.  There are much more detailed descriptions of the EWS and MIA
    routines in the Manual directory.

9.  One final note for expert users: the STARTUP-file sets a number of
    environment variables, the most important being "drsRoot".  If you
    want to run EWS without IDL, you have to set this yourself.
