================================================================================
             SNAP 1.3 : Speedy Near-infrared data Automatic Pipeline

                       Installation instruction 

                      Filippo Mannucci, Maj 2006
                        filippo@arcetri.astro.it
================================================================================


0- You need IRAF 2.11 (or later) and STSDAS to be installed, 
   and need to use tcsh or csh shell (type: echo $SHELL)

1- Uncompress and untar snap1.1.tar.gz with:
      tar xvzf snap1.1.tar.gz 
   or:
      gunzip snap1.1.tar.gz 
	  tar xvf snap1.1.tar.gz
   It creates the new directory snap containg all the files.

3- Enter in IRAF (cl) and go to that directory (cd snap ) 

4- Edit Makefile putting the right value of the following parameters:

   - Full link to the FORTRAN compiler (IRAF might hide it).
     Get it with : which f77   and: which gcc (or: which cc if gcc is missing)
	 For example:
     FF = /usr/bin/f77
     CC = /usr/bin/cc

   - STSDAS : the IRAF/STSDAS directory. 
     Under IRAF get it by: show stsdas  
     Some examples:
     Linux, redhat          STSDAS = /iraf/extern/stsdas# 
     Linux, Scisoft:        STSDAS = /scisoft/iraf/extern/stsdas# 
     SOLARIS                STSDAS = /iraf/stsdas# 
     SOLARIS                STSDAS = /usr/im/stsdas2.1.1# 

   - SEXMACHINE : if it is necessary to install the SExtractor program,
     this parameter tells what is your system. Chose one among:
        SEXMACHINE = aix      (for IBMs RS6000 running AIX)
        SEXMACHINE = alpha    (for DEC-ALPHAs with Digital UNIX)
        SEXMACHINE = hpux     (for HP/UX systems)
        SEXMACHINE = linuxpc  (for PCs running LINUX, using gcc)
        SEXMACHINE = linuxp2  (for Pentium2/3/4 PCs running LINUX)
        SEXMACHINE = linuxk7  (for Athlon PCs running LINUX)
        SEXMACHINE = sgi      (for SGI platforms)
        SEXMACHINE = solaris  (for SUN-Solaris machines)
        SEXMACHINE = sunos    (for SUN-OS platforms)
        SEXMACHINE = ultrix   (for DEC stations running ULTRIX)

5- From IRAF, give the command: !make
   It is important to give this command from the IRAF window 
   to be sure to find all the relevant links.

6- If the program SExtractor is not installed in your system, 
   give the command (NOT frfom the IRAF window):
   make sex

7- Add the SNAP directory to your path, for example adding the
   following line to your .cshrc file:
   set path = ($path /home/guest/snap)

8- Load the new executables with the command:
   rehash

