Skip to content

Python bindings for casacore, a library used in radio astronomy

License

Notifications You must be signed in to change notification settings

tammojan/python-casacore

 
 

Repository files navigation

python-casacore

Python-casacore is a set of Python bindings for casacore, a c++ library used in radio astronomy. Python-casacore replaces the old pyrap.

The python-casacore documentation can be found on casacore.github.io/python-casacore.

image

image

Installation

Ubuntu 16.04

The easiest way to start using python-casacore is to enable the KERN suite repository and install the binary package :

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:kernsuite/kern-1
$ sudo apt-get update
$ sudo apt-get install python-casacore

from source

install these requirements:

On ubuntu you can install these with:

  • enable the KERN suite
  • install build dependencies:

    $ apt-get install libcasacore2-dev python-numpy \
        python-setuptools libboost-python-dev libcfitsio3-dev
  • compile and install:

    $ python ./setup.py install
  • if you need to supply compile parameters, for example if you have your casacore library installed in a different location have a look at the build_ext help:

    $ python ./setup.py build_ext -h

    For example, if casacore is installed in /opt/local/, you can specify the library path and include path with:

    $ python ./setup.py build_ext -I/opt/local/include -L/opt/local/lib
    
    $ python ./setup.py install

Using pip

python-casacore is also available trough pip. Note that you need to manually satisfy the requirements mentioned above:

$ pip install python-casacore

Support

if you have any problems, suggestions or questions please open an issue on the python-casacore github issue tracker.

Credits

About

Python bindings for casacore, a library used in radio astronomy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 81.2%
  • C++ 18.5%
  • Shell 0.3%