Python implementation of the Spherical Harmonic Wave Transform for Radio Interferometry
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE.txt made healpy optional-ish Jan 9, 2018



A python package for generating radio interferometry images from LOFAR station ACC and XST files, and from widefield, low-frequency measurement sets (e.g. PAPER) using a Spherical Wave Harmonic Transform (Imaging on a Sphere with Interferometers: the Spherical Wave Harmonic Transform) and a standard 2D Fourier Transform.

Required Python Modules

  • matplotlib
  • numpy
  • scipy [special functions]
  • ephem [observatories]

Optional Python Modules


To install the current stable version (0.1.2) use pip:

pip install SWHT

While developing it is useful to do a developer install:

sudo python develop

Otherwise, the standard install will install the package:

sudo python install  


  • 2D Fourier Transform of LOFAR ACC, XST files and Measurement Sets
  • convert the output of the GSM (Global Sky Model) to a HEALPIX map
  • generate images and HEALPIX maps from pre-computed SWHT image coefficients
  • general HEALPIX plotting script
  • simulate visibilities from Spherical Harmonics coefficients or a HEALPIX map
  • Spherical Wave Harmonic Transform of LOFAR ACC, XST files and Measurement Sets


Example LBA and HBA correlation files is available at:

For any script, use the '-h' argument to print out help on available input options. ../examples/20150915_191137_rcu5_sb60_int10_dur10_elf0f39fe2034ea85fc02b3cc1544863053b328fd83291e880cd0bf3c3d3a50a164a3f3e0c070c73d073f4e43849c0e93b_xst.dat --station=SE607 -p 128 --conv=prolate --autos ../examples/20150607_122433_acc_512x192x192.dat -s 300 --station=SE607 --conv=gauss -p 64 ../examples/zen.2455819.69771.uvcRREM.MS -s 40 --conv=fast -p 256 --station=UK608 ../examples/20120513_052251_acc_512x192x192.dat -s 299 -l 24 --station=SE607 ../examples/20150607_122433_acc_512x192x192.dat -s 299 -l 24 --station=SE607 ../examples/20150915_191137_rcu5_sb60_int10_dur10_elf0f39fe2034ea85fc02b3cc1544863053b328fd83291e880cd0bf3c3d3a50a164a3f3e0c070c73d073f4e43849c0e93b_xst.dat -s 100 -l 32 --station=UK608 tempCoeffs.pkl -I coeff