wiki:IRAF

Version 48 (modified by cdelarcuz, 21 years ago) ( diff )

--

IRAF

IRAF is the image reduction and analysis facility. It has been ​ITP'ed for debian, but is apparently not in debian due to some licensing wrangling.

Some older debianized packages appear to be available from ​ftp://iraf.noao.edu/contrib/debian/

It also appears that the User commnunity at ​iraf.net is ​reporting success on ubuntu (however vaguely).

Here's some information Fernando got off the IRAF maintainers:

On Wed, 28 Dec 2005, Fernando Camilo wrote:


>> Could you please let me know whether there are any known issues for IRAF 
>> running under Linux Debian 3.1 (sarge)?  We are building a new Linux-based 
>> computing network here at the Columbia Astrophysics Lab and want to make 
>> sure that the key packages will work under our proposed operating system.


	There are no particular issues assuming you use the "linux" 
architecture and our distribution.  The various debian packages *do*
have known problems with compiling locally and/or running at all and
appear to have since been abandoned by the package maintainer.  64-bit
systems still aren't supported but other wise proceed with a normal
installation using the LNUX architecture and you should be fine.

Cheers,
Mike Fitzpatrick


--------------------------

NOTE:  As of Jan 1, 2006 NOAO  no longer operates a HelpDesk for
IRAF at iraf@noao.edu.   Support is being moved to a forum-based system
at http://iraf.net, please post future questions to that site.  Thanks.

IRAF INSTALLATION

Binaries/Packages for IRAF installation: The source/binaries can be found ​here

as.pcix.gen.gz All-Sources (main IRAF distribution)

ib.lnux.x86.gz Core system binaries for Linux (generic) nb.lnux.x86.gz NOAO package binaries for Linux (generic)

patch2a/ IRAF V2.12.2a patch release files

Create a local user iraf (pass: iraf) with csh shell and 
home directory at:
usr/local/iraf/iraf/local

Use the iraf account for installation and maintenance.

Create directories under /usr/local/:

metis:/usr/local> su cdelacruz
metis:/usr/local> mkdir iraf
metis:/usr/local> chown -R iraf:iraf iraf
metis:/usr/local/iraf> cd iraf
metis:/usr/local/iraf> mkdir iraf
metis:/usr/local/iraf> cd iraf
metis:/usr/local/iraf/iraf> mkdir local
metis:/usr/local/iraf> mkdir irafbin
metis:/usr/local/iraf> cd irafbin
metis:/usr/local/iraf/irafbin> mkdir bin.linux
metis:/usr/local/iraf/irafbin> mkdir noao.bin.linux
metis:/usr/local/iraf/irafbin> cd ..
metis:/usr/local/iraf> mkdir x11iraf
metis:/usr/local/iraf> mkdir extern
metis:/usr/local/iraf> cd extern

Extract iraf source archive:

metis:/usr/local/iraf> cd iraf
metis:/usr/local/iraf/iraf> gzip -d as.pcix.gen.gz
metis:/usr/local/iraf/iraf> tar -xf as.pcix.gen

Extract binaries under following directories:

metis:/usr/local/iraf/irafbin/bin.linux> cat /usr/local/iraf/ib.lnux.x86.gz | zcat | tar -xpf -
metis:/usr/local/iraf/irafbin/noao.bin.linux> cat /usr/local/iraf/nb.lnux.x86.gz | zcat | tar -xpf -

Install Patches:

patch2a.tar.gz and hbin.lnux.x86.gz
iraf@metis% tar xfv patch2a.tar

metis:/usr/local/iraf/iraf> gzip -d patch2a.tar.gz 
metis:/usr/local/iraf/iraf> tar -xf patch2a.tar

metis:/usr/local/iraf/iraf/unix/bin.linux> cat /usr/local/iraf/hbin.lnux.x86.gz | zcat | tar -xpf -

2.1  Special Note to LNUX Architecture Users
--------------------------------------------

	The V2.12.2 HSI binaries (mkpkg, xc, hardcopy translators, etc)
have a known problem affecting compilation of local tasks or external
packages and should be replaced.  This patch fixes the problem, however to
fix only the compilation issues a new set of HSI binaries are also being
made available the patch directory as

	ftp://iraf.noao.edu/iraf/v212/PCIX/patch2a/hbin.lnux.x86.gz

To use this file, simply download in binary mode and unpack in the
$iraf/unix/bin.linux directory.  Contact site support with questions.



Initialize the environment for installation:

metis:/usr/local/iraf/iraf/unix/hlib> setenv iraf /usr/local/iraf/iraf/
metis:/usr/local/iraf/iraf/unix/hlib> cd $iraf/unix/hlib
metis:/usr/local/iraf/iraf/unix/hlib> source irafuser.csh


Test the install script with the -n:

metis:/usr/local/iraf/iraf/unix/hlib> ./install -n


Run installation script as root user:

metis:/usr/local/iraf/iraf/unix/hlib> sudo ./install

Follow the default prompts.
.
.
.
========================================================================
Congratulations!  IRAF has been successfully installed on this system.
========================================================================

    To begin using the system simply log in as any user and from the
directory you wish to use as your iraf login directory type:

            % mkiraf        # create a login.cl file
            % cl            # start IRAF

The 'iraf' user is already configured with a login.cl file so a simple
'cl' command is sufficient to start the system.

Additional information can be found at the IRAF web site:

                    http://iraf.noao.edu

Please contact site support with any questions or problems at

                    iraf@noao.edu


========================================================================
================  Installation Completed With No Errors  ===============
========================================================================

metis:/usr/local/iraf/iraf/unix/hlib>


Tested using my account:

cdelacruz@metis:~$ mkiraf
-- creating a new uparm directory
Terminal types: xgterm,xterm,gterm,vt640,vt100,etc.
Enter terminal type: xgterm
A new LOGIN.CL file has been created in the current directory.
You may wish to review and edit this file to change the defaults.
cdelacruz@metis:~$ cl
setting terminal type to xgterm...
timeout - terminal type set wrong? (`stty termtype' to reset)

    NOAO PC-IRAF Revision 2.12.2-EXPORT Sun Jan 25 16:09:03 MST 2004
    This is the EXPORT version of PC-IRAF V2.12 supporting most PC systems.

    Welcome to IRAF.  To list the available commands, type ? or ??.  To get
    detailed information about a command, type `help command'.   To  run  a
    command  or  load  a  package,  type  its name.   Type  `bye' to exit a
    package, or `logout' to get out of the CL.   Type `news'  to  find  out
    what is new in the version of the system you are using.   The following
    commands or packages are currently defined:

      dataio.     images.     lists.      obsolete.   proto.      system.
      dbms.       language.   noao.       plot.       softools.   utilities.
cl> logout
cdelacruz@metis:~$

Required Packages

STSDAS 3.4/TABLES 3.4

STSDAS source: stsdas34.tar.gz ​here. TABLES source: tables34.tar.gz ​here:

Install Tables and STSDAS:

Tables:

Created directories and uncompressed archives at:

/usr/local/iraf/extern/tables
/usr/local/iraf/extern/stsdas

Modified the /usr/local/iraf/iraf/unix/hlib/extern.pkg file:

reset   tables          = /usr/local/iraf/extern/tables/
task    tables.pkg      = tables$tables.cl

reset   stsdas          = /usr/local/iraf/extern/stsdas/
task    stsdas.pkg      = stsdas$stsdas.cl
task    apropos         =stsdas$apropos.cl

reset   helpdb          = "lib$helpdb.mip\
                          ,noao$lib/helpdb.mip\
                          ,tables$lib/helpdb.mip\
                          ,stsdas$lib/helpdb.mip\

Set the following system variables:

setenv IRAFARCH linux
setenv iraf /usr/local/iraf/iraf/
source $iraf/unix/hlib/irafuser.csh
setenv PATH /usr/local/bin:$PATH

Tables Installation:

metis:/usr/local/iraf/extern/tables> mkpkg linux

metis:/usr/local/iraf/extern/tables> mkpkg linux
deleting any dreg .e files left lying about in the source directories... done
archiving and deleting generic objects... restoring archived linux objects... 
no object archive found; full sysgen will be needed
metis:/usr/local/iraf/extern/tables>


load iraf:

metis:/usr/local/iraf/extern/tables> cl

cl> tables
ta> softools
so> cd tables
so> mkpkg -p tables 

STSDAS Installation:

metis:/usr/local/iraf/extern/stsdas> mkpkg linux

metis:/usr/local/iraf/extern/stsdas> mkpkg linux
deleting any dreg .e files left lying about in the source directories... done
archiving and deleting generic objects... restoring archived linux objects... 
no object archive found; full sysgen will be needed
metis:/usr/local/iraf/extern/stsdas>

load iraf:

metis:/usr/local/iraf/extern/stsdas> cl

cl> stsdas
st> softools
so> cd stsdas
so> mkpkg -p tables -p stsdas

Compile Python code (under python directory):



iraf@metis% python compileall.py ./*


Test:

Sample HST data files are provided in the directory stsdas$data/fits.
Use the stsdas fitsio package to read these files. The expanded
version of the files should be placed into the directory stsdas$data
using the following commands:

cl> stsdas
st> fitsio
fi> cd stsdas$data/fits
fi> cl < read_fits.cl

metis:/usr/local/iraf/extern/stsdas> cl
Warning: no login.cl found in login directory
      apropos     images      noao        proto       system
      dataio      language    obsolete    softools    tables
      dbms        lists       plot        stsdas      utilities
cl> stsdas


      +------------------------------------------------------------+
      |       Space Telescope Science Data Analysis System         |
      |            STSDAS Version 3.4, November 01, 2005           |
      |                                                            |
      |   Space Telescope Science Institute, Baltimore, Maryland   |
      |   Copyright (C) 2003 Association of Universities for       |
      |            Research in Astronomy, Inc.(AURA)               |
      |       See stsdas$copyright.stsdas for terms of use.        |
      |         For help, send e-mail to help@stsci.edu            |
      |                                                            |
      +------------------------------------------------------------+
      analysis    describe    fitsio      hst_calib   problems    toolbox
      contrib     examples    graphics    playpen     sobsolete
st> fitsio
      catfits       fitscopy      gftoxdim      stwfits
      fits_exampl   geis          strfits       xdimtogf
fi> cd stsdas$data/fits
fi> cl < read_fits.cl
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
foc.fits         ../scidata/foc.hhh  512  512       32 13/08/91   HZ4 
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
fos.fits         ../scidata/fos.hhh  2064           32 04/01/93   WD0501+527 
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
hsp.fits         ../scidata/hsp.hhh  5000           32 14/10/91 
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
hrs.fits         ../scidata/hrs.hhh  2000 4         32 01/09/92   B-PIC 
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
wfpcc0.fits      ../scidata/wfpc.c0h 800  800  4    32 30/11/90 
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
wfpcc1.fits      ../scidata/wfpc.c1h 800  800  4    16 30/11/90 
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
cosiaf.fits      ../scidata/cosiaf.t                16 
                ab.fits
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
czptnelinec.fits null_image                         8  10/09/93 
                 ../scidata/czptneli 66   3015  Ncols=  7
                 renamed to ../scidata/czptnelinec.tab
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
czscoffc.fits    ../scidata/czscoffc                16 
                .tab.fits
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
saa.fits         null_image                         8  03/11/93 
                 ../scidata/saa01.ta 736  17    Ncols= 46
                 renamed to ../scidata/saa.tab
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
de200.fits       ../scidata/de200.ta 0              8 
                b.fits
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
lftemplate.fits  ../scidata/lftempla 3              32 
                te.hhh
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
xmatrix.fits     ../scidata/xmatrix. 51   48        32 
                hhh
Fits_file        IRAFNAME            Dimensions     BP DATE       OBJECT
ymatrix.fits     ../scidata/ymatrix. 63   48        32 
                hhh
fi>

Additional Packages

X11IRAF1.3.1 IRAF GUI applicatiosns package X11iraf

X11IRAF V1.3.1 Installation:


(1) Downloaded the 'x11iraf-v1.3.1-bin.linux.tar.gz' file from [http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/ here]
(2) Unpacked the X11IRAF files in a scratch directory using a command like

	   % cat x11iraf-v1.3.1-bin.<arch>.tar.gz | gunzip | tar -xf -


metis:/usr/local/iraf/x11iraf> gzip -d x11iraf-v1.3.1-bin.linux.tar.gz
metis:/usr/local/iraf/x11iraf> tar xf x11iraf-v1.3.1-bin.linux.tar



(3) Ran the 'install' script as a root user:

metis:/usr/local/iraf/x11iraf> sudo ./install

Used the default selections for prompts.

= Modifications =
{{{
ds9 must be open in order to view images within iraf. The existing compiles ds9 (4.07b) was 
not displaying and was producing an error message; solution was to dowloaded the 
ds9 (4.08b) binary.

}}}










    

Attachments (5)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.