Suite of c++ libraries for radio astronomy data processing
Clone or download
tammojan Merge pull request #851 from casacore/taql18_1
Extended variance support and other improvements
Latest commit b3d8792 Jan 7, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis Travis: don't uninstall oclint not there Nov 21, 2018
build-tools Issue #829: removed install of countcode and casacore_assay/floatchec… Nov 26, 2018
casa Merge pull request #851 from casacore/taql18_1 Jan 7, 2019
changescripts Added the MeasurementSets split change scripts Mar 26, 2015
cmake added cmake for ADIOS2 Sep 26, 2018
coordinates Issue #818: Removed obsolete files and definitions; fixed some text Nov 21, 2018
derivedmscal Issue #818: Removed obsolete files and definitions; fixed some text Nov 21, 2018
fits Fixing warnings due to misleading indentations Nov 7, 2018
images Issue #818: Removed obsolete headers and fixed compiler warnings in G… Nov 21, 2018
lattices Fix another compile error in LatticeStatistics Nov 22, 2018
meas Use TaQL attributes and fixed doxygen errors Jul 6, 2018
measures Issue #818: Removed obsolete files and definitions; fixed some text Nov 21, 2018
mirlib add support for builds with Intel compilers and generic flags Feb 27, 2017
ms CAS-12164 implement getIntentsForField() given field name Jan 3, 2019
msfits Fix reading FITS-IDI with data sampled at more than 2 bits. Nov 29, 2018
python Issue #829: Changed Python code to work well with Python3 Nov 22, 2018
python3 fix some python3 issues, enable python3 travis for linux Feb 6, 2016
scimath CAS-12122 fix overflow bug for datasets with >= 2**32 points Dec 13, 2018
scimath_f add support for builds with Intel compilers and generic flags Feb 27, 2017
tables Merge pull request #851 from casacore/taql18_1 Jan 7, 2019
.gitignore Fix whitespace in MeasIERS, add files to .gitignore Dec 4, 2015
.travis.yml Travis: allow python3 on OSX to fail Oct 7, 2018 we are going for 3.0 Nov 7, 2018
CMakeLists.txt More thorough MPI finding and inclusion Nov 27, 2018 Update contributing guidelines May 29, 2018
COPYING Replace GPLv2.0 by LGPLv2.0 in COPYING Dec 8, 2018 Correct link to contribution manual Nov 7, 2018
casacore try to fix #79 Apr 9, 2015
doxygen.cfg [Doc] Fix doxygen build Jun 10, 2018
mainpage.dox Improved thread-safety fixes of AvAmesfoort Sep 4, 2018


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


Obtaining the source

The casacore source code is maintained on github.

You can obtain it using:

$ git clone


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 \

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:

Extract this somewhere on a permanent location on your filesystem.


In the casacore source folder run:

mkdir build
cd build
cmake ..
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 \

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:


To configure Python2 specific settings use:


To configure Python3 specific settings use:


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


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.


Build Status