Tuesday, 4 September 2012

Working on a website for my Dad - not sure if posting it here will help it get higher on google, but check out www.corkhomemaintenance.ie

Tuesday, 28 February 2012

AIPS on Ubuntu 11.10

Contrary to what was said in the bananas mailing list - AIPS does work fine on newer versions of Ubuntu. There are a few hacks I needed to get it working on my new laptop though.

You need the dev files for the bds library - libbsd-dev and libedit-dev seemed to work for this.

The first thing was getting XAS - the tv server - to compile okay. There are a few options that seem to give my compiler trouble (I use gcc and gfortran). These are the -ip and -axWPT (or something like that) options. I needed to remove these from the options list when specifying the compilers to use.

But XAS is build from Y/SERVERS and has it's own build file with more options in it. Search for XAS.SHR and look for local options (or search for the link options that cause trouble). I had to remove the -axWPT option.

XAS should then build successfully, and the rest of the installation should work okay.

Monday, 11 July 2011

Installing AIPS on Ubuntu

EDIT : This was written for Ubuntu 10.04. Some additional details for newer versions of ubuntu can be found at http://astronomicalproblems.blogspot.ie/2013/05/installing-aips-on-ubuntu-1304.html.

The first pieces of software you need to install AIPS (Astronomical Image Processing System) are compilers for Fortran and C. I use gfortran and gcc/g++ because they are free and open (and easy to install), but if you have access to Intel's compiler suite use them for increased performance (or so I hear).

The easiest way to get gfortran, gcc and g++ is from the Synaptic Package Manager (under system/administration).


You'll also need to install a bunch of dependencies (all from Synaptic). These are:

        libx11-dev and its dependancies
        x11proto-xext-dev
        libxext-dev
        libxpm-dev
        libncurses5-dev
        libncursesw5-dev

When you have these installed, go to the NRAO AIPS website (http://www.aips.nrao.edu/) and grab the latest stable version of AIPS. This comes in the form of a tarball and a .pl script.

Put the tarball and the script in the directory where you want to install AIPS and follow the directions on http://www.aips.nrao.edu/install.shtml.

The settings you need to give the script vary according to your computer setup, but it's important to ensure that your fortran compiler is set to gfortran, and your c compiler to gcc. The linker should be gfortran too.

When you run the script everything should go smoothly! You're not done yet though. Make sure to add

        sssin        5000/tcp    SSSIN        # AIPS TV
        ssslock        5002/tcp    SSSLOCK        # AIPS TV Lock
        msgserv        5008/tcp    MSGSERV        # AIPS Message Server
        tekserv        5009/tcp    TEKSERV        # AIPS TekServer
        aipsmt0        5010/tcp    AIPSMT0
        aipsmt1        5011/tcp    AIPSMT1
        aipsmt2        5012/tcp    AIPSMT2
        aipsmt3        5013/tcp    AIPSMT3
        aipsmt4        5014/tcp    AIPSMT4
        aipsmt5        5015/tcp    AIPSMT5
        aipsmt6        5016/tcp    AIPSMT6
        aipsmt7        5017/tcp    AIPSMT7

to /etc/services to get AIPS to run properly. To do this you may need to open the file as root.

One last thing - add the aips path to your profile so you can run it straight from the terminal. For me the line was ". /home/colm/aips/LOGIN.SH; $CDTST". The CDTST bit at the end is needed if you intend to compile custom AIPS tasks.

Now you can begin monkeying around!

Astronomical Problems

Hi.

This is my first blog and I'm going to use it to keep track of the problems I face (and hopefully overcome) in my radio astronomy PhD.

HTML form won't submit (Angular)

 It turns out if you mix normal HTML forms with Angular ones (i.e. using FormsModule) Angular will disable the default behaviour of forms on...