Introduction#
Radio interferometry (RI) is an astronomical imaging technique that combines measurements from arrays of antennas to form high-resolution images of the radio sky. Instead of observing an image directly, an interferometer samples spatial Fourier components of the sky brightness, called visibilities. These measurements are incomplete and noisy, so RI imaging is an inverse problem.
Modern instruments observe across wide frequency bands. Hyperspectral RI imaging therefore aims to reconstruct an image cube, with one image per spectral channel, from the corresponding visibility data. This is useful because radio emission varies with frequency and can reveal physical properties of the source, such as spectral index. This page provides a general introduction to the RI imaging problem and the algorithms implemented in pyHyperRI.
RI Imaging Model#
Radio images can have a high dynamic range, with faint extended emission coexisting with bright compact features. The example below shows the radio galaxy 3C 353.
Example image for radio galaxy 3C 353.#
Radio interferometers do not capture such images directly. At a given frequency, each antenna pair measures a spatial Fourier component of the sky brightness, called a visibility. The collection of sampled Fourier modes accumulated over antenna pairs and time is the \(uv\) coverage. The example below shows a simulated Very Large Array (VLA) \(uv\) sampling pattern.
Simulated VLA uv-sampling pattern, corresponding to an observation frequency of 1.00 GHz. Coordinates are given in units of wavelength.#
For a single spectral channel, this linear sensing process is commonly written as
where \(\boldsymbol{y}_l\) is the visibility vector, \(\overline{\boldsymbol{x}}_l\) is the unknown sky image, \(\boldsymbol{\Phi}_l\) is the RI measurement operator for channel \(l\), and \(\boldsymbol{n}_l\) is measurement noise. The operator combines sparse non-uniform Fourier interpolation \(\mathbf{G}_l\), the Fourier transform \(\mathbf{F}\), and zero-padding and interpolation-kernel correction \(\mathbf{P}\). This follows the standard RI measurement view described by Thompson et al. (2017).
Applying the adjoint measurement operator to the visibility data gives the dirty image \(\mathrm{Re} \{ \boldsymbol{\Phi}_l^\dagger \boldsymbol{y}_l \}\), a back-projected image whose structure is shaped by the incomplete Fourier coverage.
Dirty image associated with the example image and uv sampling pattern.#
For hyperspectral imaging, the channel images are gathered into an image cube \(\mathbf{X} = (\boldsymbol{x}_1,\ldots,\boldsymbol{x}_L)\), the measurements into \(\mathbf{Y} = (\boldsymbol{y}_1,\ldots,\boldsymbol{y}_L)\), and the noise into \(\mathbf{N} = (\boldsymbol{n}_1,\ldots,\boldsymbol{n}_L)\).
Simulated VLA uv-sampling pattern, corresponding to an observation frequency of 1.70 GHz. Coordinates are given in units of wavelength.#
The sampling pattern of each spectral channel is scaled by the observation frequency and may be subject to different flagging patterns, so the measurement operator is channel-specific. The hyperspectral measurement operator can then be formulated as
The hyperspectral measurement model is therefore written as
Spectral Structure#
The measurement process is separable across channels, but the sky emission is spectrally correlated. For many continuum radio sources, the intensity varies smoothly with frequency in certain ranges and is often approximated by a power-law model (Thompson et al., 2017). A common form relates each channel image to a reference-frequency image through a spectral index map and a spectral curvature map:
Here \(\nu_l\) is the frequency of channel \(l\), \(\nu_0\) is a reference frequency, \(\alpha\) is the spectral index map, and \(\beta\) is the spectral curvature map.
Optimisation View#
Because of the incomplete and noisy Fourier measurements, RI imaging is ill-posed. Directly applying the adjoint operator to the data loses substantial structure, as shown in the example dirty image. To solve this inverse problem, prior information about the image is needed to regularise the solution. From the optimisation perspective, RI imaging can be formulated as finding the solution of a minimisation problem of the form
The data-fidelity term \(f\) measures consistency with the visibility data, while the regularisation term \(r\) encodes prior information such as positivity, sparsity, or learned image models. The spectral correlation can also serve as prior knowledge to improve the reconstruction quality. Some hyperspectral imaging methods choose to inject the power-law spectral model as prior information (Junklewitz et al., 2015; Ceccotti et al., 2023; Tang et al., 2026). The low-rankness among the channel images is also a practical choice (Thouvenin et al., 2023). The parameter \(\lambda\) controls the balance between the two.
Due to the Gaussian nature of the measurement noise, there are two common data-fidelity formulations. The first one is the squared \(\ell_2\) term:
where \(\|\cdot\|_{\mathrm{F}}\) denotes the Frobenius norm.
The second formulation uses an indicator data-fidelity term with channel-wise visibility-domain residual bounds:
Here \(\mathcal{B}_l\) is the channel-wise data-fidelity ball and \(\epsilon_l\) is the residual bound associated with the noise level in channel \(l\).
There are various frameworks for solving this optimisation problem. Forward-backward algorithms apply when the objective can be split into a differentiable term and a non-differentiable term: a gradient step handles the differentiable term, and a proximity or denoising step handles the non-differentiable term (Combettes & Pesquet, 2011). Primal-dual algorithms are useful when multiple non-differentiable terms must be handled separately, because they introduce dual variables and split the terms across primal and dual updates (Condat, 2013). More generally, the CLEAN family of algorithms can also be viewed as an optimisation method based on matching pursuit, which iteratively identifies and subtracts the contribution of the brightest source component from the back-projected images.
pyHyperRI follows this view through a modular design: measurement operators, optimisers, and regularisers are implemented as separate components that can be combined for different imaging algorithms.
Algorithms#
Currently, pyHyperRI implements the following algorithms:
Algorithm |
Optimisation backend |
Joint-channel imaging |
Regularisation |
|---|---|---|---|
uSARA (Terris et al., 2023) |
Forward-backward |
No |
\(\ell_1\) sparsity in a redundant wavelet dictionary and positivity |
AIRI (Terris et al., 2023) |
Plug-and-play forward-backward |
No |
AIRI denoisers |
cAIRI (Terris et al., 2025) |
Plug-and-play primal-dual |
No |
AIRI denoisers with a data-fidelity constraint |
Hyper-uSARA (Tang et al., 2026) |
Forward-backward |
Yes |
\(\ell_{2,1}\) sparsity in a redundant wavelet dictionary and positivity |
HyperAIRI (Tang et al., 2026) |
Plug-and-play forward-backward |
Yes |
HyperAIRI denoisers |
Dependencies#
pyHyperRI builds on established scientific Python and radio-astronomy software. The full runtime and optional dependency list is declared in pyproject.toml. The main dependencies are listed below.
Dependency |
Main use in pyHyperRI |
Reference |
|---|---|---|
FITS image I/O |
||
Optional Measurement Set table reading |
||
FINUFFT, cuFINUFFT, and pytorch-finufft |
CPU and GPU non-uniform Fast Fourier transforms based on FINUFFT and cuFINUFFT |
|
HDF5 measurement data I/O |
||
Intermediate data structure |
||
Convert networks in ONNX format to PyTorch modules |
||
Tensor computation, accelerator support, and distributed execution |
||
Wavelet transforms |
||
Image operations |
||
Measurement data I/O and numerical routines |
||
Purely PyTorch-based implementation for non-uniform Fast Fourier transforms |
Limitations#
The current implementation is intended primarily as a platform for developing, testing, and benchmarking intensity-imaging algorithms. The main current limitations are:
No \(w\)-correction. The implemented measurement operators do not currently include wide-field correction terms. Support for \(w\)-stacking is planned for a future release.
Parallel execution for multiple channel on one Device. Currently, channels share a single device are processed sequentially. Exploring the proper parallelisation strategy can further improve the runtime performance.
Intensity imaging only. pyHyperRI currently focuses on total-intensity imaging. Polarisation imaging and calibrations are not yet supported.
References#
Andrew Collette and contributors. (2008). h5py. Software, BSD 3-Clause license.
Combettes, P. L., & Pesquet, J.-C. (2011). Proximal Splitting Methods in Signal Processing. In Fixed-Point Algorithms for Inverse Problems in Science and Engineering, 185-212.
Condat, L. (2013). A primal-dual splitting method for convex optimization involving Lipschitzian, proximable and linear composite terms. J. Optim. Theory Appl., 158(2), 460-479.
van der Walt, S., Schonberger, J. L., Nunez-Iglesias, J., Boulogne, F., Warner, J. D., Yager, N., Gouillart, E., & Yu, T. (2014). scikit-image: image processing in Python. PeerJ, 2, e453.
Junklewitz, H., Bell, M. R., & Ensslin, T. A. (2015). A new approach to multifrequency synthesis in radio interferometry. A&A, 581, A59.
van Diepen, G. N. J. (2015). Casacore Table Data System and its use in the MeasurementSet. Astronomy and Computing, 12, 174-180.
Thompson, A. R., Moran, J. M., & Swenson, G. W. (2017). Interferometry and Synthesis in Radio Astronomy. Springer Nature.
Barnett, A. H., Magland, J., & af Klinteberg, L. (2019). A parallel nonuniform fast Fourier transform library based on an exponential of semicircle kernel. SIAM Journal on Scientific Computing, 41(5), C479-C504.
Paszke, A., Gross, S., Massa, F., et al. (2019). PyTorch: An imperative style, high-performance deep learning library. Advances in Neural Information Processing Systems, 32.
Harris, C. R., Millman, K. J., van der Walt, S. J., et al. (2020). Array programming with NumPy. Nature, 585, 357-362.
Muckley, M. J., Riemenschneider, B., Radmanesh, A., Kim, S., Jeong, G., Ko, J., Jun, Y., Shin, H., Hwang, D., Mostapha, M., & Knoll, F. (2020). TorchKbNufft: A high-level, hardware-agnostic non-uniform fast Fourier transform. ISMRM Workshop on Data Sampling & Image Reconstruction.
Repetti, A., & Wiaux, Y. (2020). A forward-backward algorithm for reweighted procedures: Application to radio-astronomical imaging. Proc. IEEE Int. Conf. Acoust., Speech Signal Process, 1434-1438.
Virtanen, P., Gommers, R., Oliphant, T. E., et al. (2020). SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods, 17, 261-272.
ENOT developers, Kalgin, I., Yanchenko, A., Ivanov, P., & Goncharenko, A. (2021). onnx2torch. Software, Apache-2.0 license.
Shih, Y.-H., Wright, G. B., Anden, J., Blaschke, J., & Barnett, A. H. (2021). cuFINUFFT: a load-balanced GPU library for general-purpose nonuniform FFTs. 2021 IEEE International Parallel and Distributed Processing Symposium Workshops, 688-697.
Astropy Collaboration, Price-Whelan, A. M., Lim, P. L., et al. (2022). The Astropy Project: Sustaining and Growing a Community-oriented Open-source Project and the Latest Major Release. ApJ, 935(2), 167.
Ceccotti, E., Offringa, A. R., Koopmans, L. V. E., et al. (2023). A novel radio imaging method for physical spectral index modelling. MNRAS, 525(3), 3946-3962.
Terris, M., Dabbech, A., Tang, C., & Wiaux, Y. (2023). Image reconstruction algorithms in radio interferometry: From handcrafted to learned regularization denoisers. MNRAS, 518(1), 604-622.
Thouvenin, P.-A., Abdulaziz, A., Dabbech, A., Repetti, A., & Wiaux, Y. (2023). Parallel faceted imaging in radio interferometry via proximal splitting (Faceted HyperSARA): I. Algorithm and simulations. MNRAS, 521(1), 1-19.
Wolter, M., Blanke, F., Garcke, J., & ten Brink, S. (2024). ptwt - The PyTorch Wavelet Toolbox. Journal of Machine Learning Research, 25(80), 1-7.
Terris, M., Tang, C., Jackson, A., & Wiaux, Y. (2025). The AIRI plug-and-play algorithm for image reconstruction in radio-interferometry: variations and robustness. MNRAS, 537(2), 1608-1619.
Tang, C., Dabbech, A., Jackson, A., & Wiaux, Y. (2026). HyperAIRI: A Plug-and-play Algorithm for Precise Hyperspectral Image Reconstruction in Radio Interferometry. ApJS, 283(1), 9.