Suite of c++ libraries for radio astronomy data processing
C++ Fortran C CMake Shell Yacc Other
dpetry Merge pull request #733 from dmehring/CAS-11420
DirectionCoordinate::convert() mods
Latest commit 885e63d Jun 14, 2018
Permalink
Failed to load latest commit information.
.travis [Travis] Fix Travis OSX environment Jun 9, 2018
build-tools Check if valgrind exists if tests are run with checking Jan 25, 2018
casa Merge pull request #716 from cquike/remove_quanta_cache Jun 7, 2018
changescripts Added the MeasurementSets split change scripts Mar 26, 2015
cmake Improve FindNUMPY.cmake when headers are not installed (fixes #382) Apr 7, 2016
coordinates DirectionCoordinate::convert() mods Jun 13, 2018
derivedmscal Fixed problem with isDefined on derivedmscal columns May 1, 2018
fits Fix transpose problem of FITS PC matrix found in CAS-9993 Jun 30, 2017
images Cosmetic change to ImageFITS2Converter to remove a superfluous empty … May 18, 2018
lattices Merge pull request #715 from dmehring/CAS-11195 Mar 27, 2018
meas add support for builds with Intel compilers and generic flags Feb 27, 2017
measures QC static initialization fixes (as seen when compiled into a single l… May 1, 2018
mirlib add support for builds with Intel compilers and generic flags Feb 27, 2017
ms QC static initialization fixes (as seen when compiled into a single l… May 1, 2018
msfits Do not set default diameter for VLBA to 25m Oct 5, 2017
python keep numpy 1.13 printoption for numpy 1.14 or above, otherwise doctes… Mar 13, 2018
python3 fix some python3 issues, enable python3 travis for linux Feb 6, 2016
scimath CAS-11375 implement interp method for complex values, treat May 15, 2018
scimath_f add support for builds with Intel compilers and generic flags Feb 27, 2017
tables Fixed problem with isDefined on derivedmscal columns May 1, 2018
.gitignore Fix whitespace in MeasIERS, add files to .gitignore Dec 4, 2015
.travis.yml [Travis] Fix Travis OSX environment Jun 9, 2018
CHANGES.md Prepare release v2.4.0 Oct 25, 2017
CMakeLists.txt turn off python for casa builds of casacore May 11, 2018
CONTRIBUTING.md Update contributing guidelines May 29, 2018
COPYING Moved Copyright file from install to casacore Sep 22, 2015
README.md typo Dec 2, 2016
casacore try to fix #79 Apr 9, 2015
doxygen.cfg [Doc] Fix doxygen build Jun 10, 2018
mainpage.dox Issue #505 Added Json support for ImageConcat and ImageExpr Nov 2, 2016

README.md

Casacore

A suite of c++ libraries for radio astronomy data processing.

Installation

Obtaining the source

The casacore source code is maintained on github.

You can obtain it using:

$ git clone https://github.com/casacore/casacore

Requirements

To compile casacore you need to meet the following requirements:

  • cmake
  • gfortran
  • g++
  • flex
  • bison
  • blas
  • lapack
  • cfitsio (3.181 or later)
  • wcslib (4.20 or later)
  • sofa (optional, only for testing casacore measures)
  • fftw3 (optional)
  • hdf5 (optional)
  • numpy (optional)
  • boost-python (optional)
  • ncurses (optional)

On Debian / Ubuntu you can install these with:

$ sudo apt-get install build-essential cmake gfortran g++ libncurses5-dev \
   libreadline-dev flex bison libblas-dev liblapacke-dev libcfitsio3-dev \
   wcslib-dev 

and the optional libraries:

$ sudo apt-get install libhdf5-serial-dev libfftw3-dev python-numpy \
    libboost-python-dev libpython3.4-dev libpython2.7-dev

On CentOS7 you can install these with:

$ sudo yum install cmake cmake-gui gcc-gfortran gcc-c++ flex bison \
       blas blas-devel  lapack lapack-devel cfitsio cfitsio-devel \
       wcslib wcslib-devel ncurses ncurses-devel readline readline-devel\
       python-devel boost boost-devel fftw fftw-devel hdf5 hdf5-devel\
       numpy boost-python 

Obtaining measures data

Various parts of casacore require measures data, which requires regular updating. You can obtain the WSRT measures archive from the ASTRON FTP server:

ftp://ftp.astron.nl/outgoing/Measures/

Extract this somewhere on a permanent location on your filesystem.

Compilation

In the casacore source folder run:

mkdir build
cd build
cmake ..
make 
make install

there are various flags available to cmake to enable and disable options:

$ cmake -DUSE_FFTW3=ON -DDATA_DIR=/usr/share/casacore/data -DUSE_OPENMP=ON \
    -DUSE_HDF5=ON -DBUILD_PYTHON=ON -DUSE_THREADS=ON

The DATA_DIR should point to the location where you extracted the measures data. Special variables %CASAROOT% and %CASAHOME% can be used here, which can be set at run time through the .casarc file.

We have expirmental support for Python3 now. You can build python3 support using -DBUILD_PYTHON3=on. Note that CMake may have problems detecting the correct python3 libraries and headers, so probably you need to set them manually. For example:

-DPYTHON3_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.4m.so
-DPYTHON3_INCLUDE_DIR=/usr/include/python3.4

To configure Python2 specific settings use:

PYTHON2_EXECUTABLE
PYTHON2_LIBRARY
PYTHON2_INCLUDE_DIR

To configure Python3 specific settings use:

PYTHON3_EXECUTABLE
PYTHON3_LIBRARY
PYTHON3_INCLUDE_DIR

If you run into problems with boost libraries, try setting -DBoost_NO_BOOST_CMAKE=True. This will be necessary if you have the libraries from NRAO casa in your PATH or LD_LIBRARY_PATH.

Ubuntu packages

Casacore is part of the kern suite, which supplies precompiled binaries for Ubuntu 14.04 and 16.04

Documentation

http://casacore.github.io/casacore

Problems & bugs

If you have any issues compiling or using casacore, please open an issue on the issue tracker on github.

If you have patches please open a pull request. Your contributions are more than welcome! But to maintain a high code quality we have written a contribution manual, please read that first.

travis

Build Status