Text

KSBf90: A Fortran 90 Implementation of Kaiser, Squires and Broadhurst 1995.

Installing and compiling KSBf90 software and libraries


KSBf90 uses Fortran 90 and libraries from cfitsio and pgplotSExtractor is used for object detection although for the GREAT08 Challenge we provide the SExtractor source catalogues.  To compile and run KSBf90 you will need to download and install the following:


Fortran 90 compiler:

KSBf90 has only been tested with the Intel Fortran compiler ifort, which has a free non-commercial download


Cfitsio Fits Libraries:

Cfitsio is a software package from NASAs HEASARC which allows you to read fits files. It can be downloaded from http://heasarc.nasa.gov/docs/software/fitsio/fitsio.html


PGPLOT:

PGPLOT is a plotting package that can be called directly from fortran code.  Download and installation information can be found here http://www.astro.caltech.edu/~tjp/pgplot/


SExtractor:

SExtractor is an object detection algorithm by Bertin & Arnouts 1996.   Download and installation information can be found here http://terapix.iap.fr/rubrique.php?id_rubrique=91


The manual "Source Extractor for dummies" by Benne Holwerda is a particularly useful resource if you are new to SExtractor.


KSBf90 Compilation Example:

In your .tcshrc you can set an alias which links the fortran compiler, pgplot and cfitsio


alias f90pgio      'ifort -o \!:1.a \!:1.f90 /usr/local/cfitsio/libcfitsio.a  -L/usr/local/pgplot -lpgplot -L/usr/X11R6/lib -lX11'


To compile any of the KSBf90 code eg the gal_correct.f90 code, you would type

f90pgio gal_correct

and an executable gal_correct.a would be created.

For GREAT08 you only need to compile psffit.f90 and gal_correct.f90.



KSBf90 Download and File Locations


Download the code and scripts tarball and unpack it in a directory, which we assume below to be /home/user/GREAT08. You will also need to download the GREAT08 data into a directory which we assume below to be /data/user/GREAT08.  Make a new directory to store your object catalogues, which we assume below to be /data/user/GREAT08/v1.0/Catalogues.  Once these locations are set include the following in your .tcshrc (modified with your true file locations)


setenv GREAT08DIR /data/user/GREAT08/v1.0

setenv CATDIR /data/user/GREAT08/v1.0/Catalogues

setenv KSBDIR /home/user/GREAT08/KSBf90


Scripts for running a GREAT08 analysis will unpack into /home/user/GREAT08/GREAT08_scripts



Page maintained by Catherine Heymans, IfA, University of Edinburgh