All Projects → lofar-astron → PyBDSF

lofar-astron / PyBDSF

Licence: GPL-3.0 License
Python Blob Detector and Source Finder

Programming Languages

fortran
972 projects
python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
HTML
75241 projects
CMake
9771 projects

PyBDSF

PyBDSF (the Python Blob Detection and Source Finder, formerly PyBDSM) is a tool designed to decompose radio interferometry images into sources and make available their properties for further use. PyBDSF can decompose an image into a set of Gaussians, shapelets, or wavelets as well as calculate spectral indices and polarization properties of sources and measure the psf variation across an image. PyBDSF uses an interactive environment based on CASA that will be familiar to most radio astronomers. Additionally, PyBDSF may also be used in Python scripts.

The documentation is currently hosted at http://www.astron.nl/citt/pybdsf

Installation

Installation can be done in a number of ways. In order of preference (read: easy of use):

  • Install the latest release from PyPI:

    pip install bdsf
    
  • Install the master branch from the PyBDSF git repository:

    pip install git+https://github.com/lofar-astron/PyBDSF.git
    

    Or install install a specific revision or release, for example v1.9.3:

    pip install git+https://github.com/lofar-astron/[email protected]
    
  • Install from a local source tree, e.g. after you cloned the git repository:

    pip install .
    

Note

The interactive shell pybdsf is no longer installed by default. To install it you have to specify the extra [ishell]. For example:

pip install bdsf[ishell]

If you get the error:

RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd

then please update numpy with pip install -U numpy.

Attention!

It is not recommend to use python setup.py install. It is deprecated, and we do not support it.

External requirements include the ubuntu packages (or similar packages in another Linux distribution):

  • gfortran
  • libboost-python-dev
  • libboost-numpy-dev (Only if boost > 1.63)
  • python-setuptools.

Also, a working numpy installation is required. At runtime, you will need scipy and either pyfits and pywcs or python-casacore or astropy.

If you install as a user not using conda, use pip install --user. Make sure to use similar versions for gcc, g++ and gfortran (use update-alternatives if multiple versions of gcc/g++/gfortran are present on the system). In this case, the script pybdsf is installed in ~/.local/bin, so you might want to add that to your $PATH.

Installation on MacOS / OSX is more involved, you will need the packages mentioned above, for example installed with Homebrew. You will need to tell setup.py to use the same compiler for fortran as for C++. In case of problems, see #104 (comment) for some possible steps to try.

https://travis-ci.org/lofar-astron/PyBDSF.svg?branch=master
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].