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.
This is most simple way to get started with python-casacore:
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:radio-astro/main
$ sudo apt-get update
$ sudo apt-get install python-casacore
install these requirements:
- setuptools
- Casacore >= 2.0
- Boost-python
- numpy
- cfitsio
On ubuntu you can install these with:
- enable the radio astronomy launchpad PPA
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 loook at the build_ext help:
$ python ./setup.py build_ext -h
python-casacore is also available trough pip. Note that you need to manually satisfy the requirements mentioned above:: $ pip install python-casacore
if you have any problems, suggestions or questions please open an issue on the python-casacore github issue tracker.