wiki:ASAPSourceInstall

Version 14 (modified by Chris Phillips, 18 years ago) (diff)

--

Installing ASAP and dependencies from source

  • Rpfits Download rpfits
       > tar zxvf rpfits.tar.gz; cd rpfits/linux
           (edit GNUMakefile and change RPFITSROOT if appropriate)
       > make install
    
  • CASA (aips++) Download casa_asap (or casa_asap2.1)
       > tar jxvf casa_asap.tar.bz2; cd casa_asap
            (read README and decide if you need to edit linux/UNKNOWN_SITE/makedefs)
       > sh build.sh
    

Depending on whether you use (t)csh

   > source aipsinit.csh

or bash

   > . aipsinit.sh
  • ASAP Download asap_src
       > tar jxvf asap_src.tar.bz2; cd asap2.0
    

You need to have the scons package installed (see o/s specific notes)

   > scons

If scons fails with "Checking for casa libraries...no" then you probably forgot to source the aipsinit script

Check if the module works. If the following statement returns without a message, all is good!

  > cd stage/asap; python -c "import _asap"; cd -

Install it to the default location:

   su
   scons install
  • ASAP Data Download asap_data
       su
       cd /usr/lib/python2.3/site-packages/asap  # May be in a differen location on your machine
       tar jxvf <download_directory>/asap_data.tar.bz2
    

Now you can test it by executing:

   asap