![]()
|
The REDUCEME program writefits is compiled only if the library FITSIO is also available in your computer (otherwise the installation procedure will skip it). If you are planning to use this program, download FITSIO from here.
% cd /usr/local
% mkdir reduceme
% cd reduceme
% mv /scratch/xxx/reduceme_v4_?_??.tar.gz .
% gunzip reduceme_v4_?_??.tar.gz
% tar xvf reduceme_v4_?_??.tar
In this stage, the following files and subdirectories must be created:
% cd red
% vi redlib.inc (...NSMAX=1024 ...NCMAX=1024 ...wq!)
% cd ..
% ./create_reduceme gfortran gcc /usr/X11R6/lib
The first and second arguments are the FORTRAN and C compilers,
respectively. The third argument is the directory where the library
libX11.a can be found.
% setenv reduceme_dir /usr/local/reducemeand to update the user's path
% set path=($reduceme_dir/bin $path)It is also very useful to define a default graphic output for PGPLOT (if this default is not alredy set), e.g.
% setenv PGPLOT_DEV /XSERVE
% cd $reduceme_dir/srcI suggest you to preserve the original REDUCEME file and use a different name for the modified version of the program, e.g.
% cp adnsc.f adnsc_modified.fThen, you can edit and modify the program as you wish
% vi adnsc_modified.f (...wq!)From the same directory, you can execute the following script
% ../create_pgpdirect adnsc_modified.f gfortran /usr/X11R6/libThe script compiles the modified fortran program, and places the executable file in the subdirectory $reduceme_dir/bin.
Finally execute
% rehashfor the new binary file to be accesible from any place.
![]()
|