Cygrid: A fast Cython-powered convolution-based gridding module for Python
arXiv:1604.06667 · doi:10.1051/0004-6361/201628475
Abstract
Data gridding is a common task in astronomy and many other science disciplines. It refers to the resampling of irregularly sampled data to a regular grid. We present cygrid, a library module for the general purpose programming language Python. Cygrid can be used to resample data to any collection of target coordinates, although its typical application involves FITS maps or data cubes. The FITS world coordinate system standard is supported. The regridding algorithm is based on the convolution of the original samples with a kernel of arbitrary shape. We introduce a lookup table scheme that allows us to parallelize the gridding and combine it with the HEALPix tessellation of the sphere for fast neighbor searches. We show that for input data points, cygrids runtime scales between O(n) and O(n log n) and analyze the performance gain that is achieved using multiple CPU cores. We also compare the gridding speed with other techniques, such as nearest-neighbor, and linear and cubic spline interpolation. Cygrid is a very fast and versatile gridding library that significantly outperforms other third-party Python modules, such as the linear and cubic spline interpolation provided by SciPy.
11 pages, 9 figures, accepted by A&A
References in corpus (10)
- Astropy: A Community Python Package for Astronomy
- The NumPy array: a structure for efficient numerical computation
- HEALPix -- a Framework for High Resolution Discretization, and Fast Analysis of Data Distributed on the Sphere
- The Leiden/Argentine/Bonn (LAB) Survey of Galactic HI: Final data release of the combined LDS and IAR surveys with improved stray-radiation corrections
- Representations of celestial coordinates in FITS
- GASS: The Parkes Galactic All-Sky Survey. I. Survey Description, Goals, and Initial Data Release
- Representations of world coordinates in FITS
- GASS: The Parkes Galactic All-Sky Survey. II. Stray-Radiation Correction and Second Data Release
- The Effelsberg-Bonn HI Survey: Milky Way gas. First data release
- The Effelsberg-Bonn HI Survey (EBHIS)
Cited by in corpus (12)
- HI4PI: A full-sky HI survey based on EBHIS and GASS
- Properties of cold and warm HI gas phases derived from a Gaussian decomposition of HI4PI data
- Multi-GPU maximum entropy image synthesis for radio astronomy
- HI anisotropies associated with radio-polarimetric filaments. Steep power spectra associated with cold gas
- All-sky census of Galactic high-latitude molecular intermediate-velocity clouds
- Anisotropies in the HI gas distribution toward 3C196
- The SOFIA FEEDBACK Legacy Survey: Dynamics and mass ejection in the bipolar HII region RCW 36
- Turbulent power distribution in the local interstellar medium
- HCGrid: A Convolution-based Gridding Framework for RadioAstronomy in Hybrid Computing Environments
- Efficient Egocentric Visual Perception Combining Eye-tracking, a Software Retina and Deep Learning
- Map Reconstruction of radio observations with Conditional Invertible Neural Networks
- Hydrogen in diffuse molecular clouds in the Milky Way: Atomic column densities and molecular fraction along prominent lines of sight