wiki:GIPSY

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

--

GIPSY

GIPSY is an acronym of Groningen Image Processing SYstem. It is a highly interactive software system for the reduction and display of astronomical data. Information can be found ​here

Installation

created a user gipsy/gipsy:
gipsy@metis:~$ gzip -d gipsy_src.tar.gz
gipsy@metis:~$ tar xf gipsy_src.taz

cdelacruz@metis:/usr/local/gipsy$ gip_root=$PWD
cdelacruz@metis:/usr/local/gipsy$ export gip_root

cdelacruz@metis:/usr/local/gipsy/sys$ ./mkclient.csh 103
Creating /usr/local/gipsy/loc

cdelacruz@metis:/usr/local/gipsy/sys$ .$gip_sys/gipenv.sh
cdelacruz@metis:/usr/local/gipsy/sys$ mv clients.new $gip_root/loc/clients

cdelacruz@metis:/usr/local/gipsy/sys$csh 
metis:~/sys> source gipenv.csh

Compiler setup:

metis:~/sys> cd $gip_loc
metis:~/sys> cp $gip_sys/setup.mgr setup

Edited the setup file (/home/gipsy/loc/setup);
deleted all the lines except for:

#
#
# OS: 2.6.9-1.648_ELsmp (Distribution Red Hat Enterprise, x86_64)
# CC: gcc 3.4.2
#
#

metis:~/sys> ./install.csh
INSTALL  Version 3.6
Checking for essential utilities ...
--  Using local setup  --
cd /home/gipsy/tmp/linux
chmod ug+s /home/gipsy/exe/linux/compile
gftp: metis registered as GIPSY client #7
Checking for X11 compiler options ...
... will use for X11 compiler options : -I/usr/X11R6/include -I/usr/X11R6/includ e/X11
Checking for X11 linker options ...
... will use for X11 linker options   : -L/usr/lib -lpthread -L/usr/X11R6/lib/ - lX11
Checking the X-Toolkit linker options ...
... will use for X-Toolkit options    : -L/usr/X11R6/lib -lXaw -lXmu -lXt -lXext  -lSM -lICE -lX11 -lpthread
INSTALL finished!

Building the sources (GIPSY library and the GIPSY applications):

metis:~/sys> ./mkbookkeeper.csh
bookkeeper.new created
metis:~/sys> mv bookkeeper.new bookkeeper

metis:~/sys> p -update > & p.log &
[1] 25726

metis:~/sys> tail p.log
compile -- running in Master Mode!
compile -- Waiting for lock to be removed by gipsy!

Note that when you kill 'p' there might be some lock 
files which will not allow 'p' to be restarted. 
To remove the lock files type:

metis:~/sys> rm -f $gip_sys/.*lock $gip_sys/*.lock $gip_tmp/update.lock

metis:~/sys> tail p.log
rm /home/gipsy/tmp/linux/irzc_intsky.o
rm /home/gipsy/tmp/linux/irzc_intsky.f
rm /home/gipsy/tmp/linux/irzc_detmodel.o
rm /home/gipsy/tmp/linux/irzc_detmodel.f
rm /home/gipsy/tmp/linux/irzc_data.o
rm /home/gipsy/tmp/linux/irzc_data.f
rm /home/gipsy/tmp/linux/irzc_subzem.o
rm /home/gipsy/tmp/linux/irzc_subzem.f
rm /home/gipsy/tmp/linux/zodycal.src
compile -- Ready with zodycal.src!

metis:~/sys>

Initialize the environment:

Each user who wants to use gipsy has to put the following 
lines into his or her .cshrc file:

        setenv gip_root <PATH_TO_GIPSY_ROOT_DIRECTORY>
        source $gip_root/sys/gipenv.csh

Also inspect cshrc.csh to find out whether your system needs some special setings. 
If so, incorporate them into your .cshrc.

For bash users:

       ### Gipsy Environment ###
       gip_root=/usr/local/gipsy
       export gip_root
       . $gip_root/sys/gipenv.sh

Optional) Post Installation: GIPSY's Python binding
GIPSY's Python binding enables you to run tasks written in the Python language. This software is a work in progress which has only been tested on Red Hat Linux versions 7.2, 9.0 and Enterprise. Currently the Xaw3d widget library must be available; the standard Xaw library is not sufficient. To install the software, perform the following steps:

   1. Obtain pygipsy-0.3.tar with your browser or use anonymous ftp:

      cd $gip_root
      ftp ftp.astro.rug.nl
      Name: anonymous
      Password: your e-mail address
      ftp> cd gipsy
      ftp> binary
      ftp> get pygipsy-0.3.tar
      ftp> quit

   2. Unpack the archive:

      tar xvf pygipsy-0.3.tar

   3. Go to the installation directory and check the README file:

      cd pygipsy-0.3
      less README

   4. Run the installation script:

      ./install.csh

   5. When everything is OK, the installation directory contents and pygipsy-0.3.tar can be deleted:

      cd ..
      rm -rf pygipsy-0.3
      rm pygipsy-0.3.tar


(Optional) Post Installation: GIPSY html documentation
GIPSY documentation is found on the home page of the Groningen Image Processing SYstem. This documentation can also be installed on your local system. The file GIPSY_HTML.tar.gz contains GIPSY's html documentation. To install it on your system, do the following:

   1. Check whether $gip_htm is defined. If not, (e.g. you want to install the documentation on an older, existing, GIPSY installation), your GIPSY version is too old and you should get an update.
   2. Check whether the directory $gip_root/htm exists. If not, change directory to $gip_sys and run the install script:

     cd $gip_sys
      ./install.csh

      This should create the directory. Then (for the second time) type:

     ./install.csh

      This creates some necessary links.
   3. Obtain GIPSY_HTML.tar.gz with your browser or use anonymous ftp:

      cd $gip_root
      ftp ftp.astro.rug.nl
      Name: anonymous
      Password: your e-mail address
      ftp> cd gipsy
      ftp> binary
      ftp> get GIPSY_HTML.tar.gz
      ftp> quit

   4. Unpack the html documentation archive in directory $gip_htm:

      cd $gip_root/htm
      gunzip < ../GIPSY_HTML.tar.gz | tar xvf - 

      Now GIPSY should be able to access the local html documentation. The message "... Access via Internet" when starting a Web browser from Hermes (ESC-X) should not appear anymore.
   5. When everyting is OK, GIPSY_HTML.tar.gz can be deleted:

      rm $gip_root/GIPSY_HTML.tar.gz

The html documentation is not yet automatically updated. To get the latest version, repeat steps 3 through 5. The file GIPSY_HTML.tar.gz on our server is currently refreshed daily.


Post installation: Regular updates
If you want regular updates of modifications to GIPSY sources or new GIPSY applications, and you can compile GIPSY sources, you must do the following:

Turn on the gftp bit in the $gip_loc/clients file. (Just add 128 to the number supplied to mkclient.csh. E.g. 71 becomes 199 and 103 becomes 231.)

With $gip_sys/atqueue.csh you can queue the update job to run at a specified time and update the gipsy sources. Preferably this is done once a week. You can also use cron for regular updates. A cron command which updates every tuesday would look like:

0 22 * * 2 /bin/csh /zia/u/gipsy/gipsy/sys/update.csh


Post Installation: Troubleshooting
You may run into problems installing, running or compiling GIPSY. Here are some things to check first before contacting the GIPSY group in Groningen.

   1. Check whether you have the correct version of the operating system and the compilers mentioned above. You may have to make small modifications to $gip_loc/setup to enable correct compiling.
   2. Check whether you have initialized the gipsy environment in your .cshrc file. Each user must have the following statement in his/her .cshrc file:

      setenv gip_root 
      source $gip_root/sys/gipenv.csh

      Also inspect $gip_sys/cshrc.csh for any other system specific settings.
   3. Then check whether you have made the necessary modifications to the setup files.
   4. Check whether you have the lock daemon running on your system. If not, ask your system manager to start it.
   5. Check whether you can start a remote shell on all the machines you want to run GIPSY (also if you have only one machine). If the remote shell does not want to run, check your .rhosts file in your home directory.
   6. When you are running olwm, you might have to modify the .Xdefaults file in your HOME directory to enable keyboard focus on the GIDS window. Add the following line: OpenWindows.FocusLenience: True
   7. If you still have problems, you can contact the GIPSY manager at Groningen: gipsy@astro.rug.nl. 




Note: See TracWiki for help on using the wiki.