gunzip cirp_soft.tar.gz tar -xvf cirp_soft.tarThis will create the folder cirpass in your current working directory. (Installing to your login directory may reduce the number of files that need to be customised.)
mv -i cirpass/iraf/* iraf/However, this will overwrite your loginuser.cl file if you already have one. (In this case just add the appropriately modified versions of the lines shown below to your loginuser.cl file). Alternatively you can install to a custom location. You will need to add the following lines to your loginuser.cl file, changing them to reflect the actual location of the cirpass cl code.
set cirpass= home$Cirpass/ task $cirpass.pkg = cirpass$cirpass.cl
setenv CIRPBIN /home/_userid_/cirpass/bin/(don't forget the trailing forward slash). This needs to be done in any xterm / xgterm from which you start iraf. Ideally just place this line in your login file.
set cirpraw = /data1/cirpass/ set cirpred = /data2/datared/cirpraw is the raw data, produced by the instrument. cirpred is the location for the reduced data. You will need write permission on this directory.
mv -i /cirpass_untar_location/cirpass/iraf/* /iraf/extern/This will move a directory called Cirpass into the site-wide directory. Although see NOTE, 3 points below.
cd hlib$ vi extern.pkg(hlib$ usually = /iraf/iraf/unix/hlib or something similar) and add the following two lines before the reset helpdb entry, and changing the cirpass environment variable to reflect the actual installed location, issued in the move command above.
reset cirpass = /iraf/extern/Cirpass/ task $cirpass.pkg = cirpass$cirpass.clNote the capital C for the Cirpass directory!!
setenv CIRPBIN /cirpass_untar_location/cirpass/bin/(don't forget the trailing forward slash).
set cirpraw = /data1/cirpass/ set cirpred = /data2/datared/cirpraw is the raw data, produced by the instrument. cirpred is the location for the reduced data. You will need write permission on this directory.
show imtype
should be fits). This can be achieved
with: reset imtype = fitsfrom the cl prompt, or changed permanently by uncommenting and changing the "imh" to "fits" in the:
#set imtype = "imh"line in the ~/iraf/login.cl file.
make cfitsioThis will take a little while. Now compile the cirpass package
make
PGDIR = $(instpath)/extern/pgplot5.2to reflect the location of pgplot on your system. Also, modify the lines below this as instructed in the makefile.
make usepgplot
setenv PGPLOT_DIR /usr/local/pgplot/location/
setenv PGPLOT_DEV /xwindow
../pgplot/makemake ../pgplot linux g77_gcc
make(Had to change the X11 bit of the Loader library-flags in the makefile to -L/usr/X11R6/lib)
make clean
make cpgfor the C binding.
setenv PGPLOT_DIR /home/_userid_/cirpass/extern/pgplot5.2/
setenv PGPLOT_DEV /xwindow
setenv LD_LIBRARY_PATH /home/cirpass/cirpass_software/extern/pgplot5.2
make usepgplot
obs:x:506:507:Observer:/home/obs:/bin/tcsh data:x:507:508:data account:/home/data:/usr/bin/nologinand /etc/group has:
irgroup:x:506:cirpass,ajd,raj,irp obs:x:507:cirpass,raj,ajd,irp data:x:508:cirpass,ajd,raj,irp
make utilsand install pgplot with
make usepgplot
./setdatapermissions.sh
ln -s / datastore
chown data:data mosaic chmod 6755 mosaicRemember to set assemble back to true if you go back to the 1K, otherwise the pipeline will mosaic the 1k quadrants instead of pixcel, but the differing read out patterns of the two chips means that they require different rotations before mosaicing, so the 1K will come out incorrectly stitched together.
/install_location/cirpass/src/mosaic/mosaic.c
, and make
sure you are using the version modified on 21st August 2003,
not the original 10th September 2001 version.Users at the IoA who type "cirpass" from iraf, load the package
from /home/cirpass/iraf/Scripts/Cirpass
and the C code
from /home/cirpass/C/
. Modifications to the software
should be made (and tested!) in those directories as the user
cirpass. The software for public release is maintained in
/home/cirpass/Release/
. Any files changed as a result of
software updates should be copied to the relevant subdirectory
below Release
and then the distribution tar ball recreated with:
cd /home/cirpass/Release gtar -zcvf cirp_code_20030428.tar.gz cirpass su optics cd /home/optics/public_html/cirpass/Software/ cp /home/cirpass/Release/cirp_code_20030428.tar.gz . rm cirp_soft.tar.gz ln -s cirp_code_20030428.tar.gz cirp_soft.tar.gz exitwhere
20030428
is today's date. Care should be taken when
copying files over to Release/
! Only overwrite
source iraf or C files. cirpass.cl and the makefile are very
different in the Release/
directory from those used by
the site, as they are the generalised forms. DO NOT overwrite
cirpass.cl or the makefile in Release/
. If new programs
are written they should be edited into these files by hand.
Iraf was installed using the standard iraf documentation that is available from http://iraf.noao.edu, the X11iraf package was also installed to provide ximtool and xgterm's. The stsdas and tables packages were also installed by following the links from the main iraf site.