首页    期刊浏览 2024年11月28日 星期四
登录注册

文章基本信息

  • 标题:Cygrid: A fast Cython-powered convolution-based gridding module for Python
  • 本地全文:下载
  • 作者:B. Winkel ; B. Winkel ; D. Lenz
  • 期刊名称:Astronomy & Astrophysics
  • 印刷版ISSN:0004-6361
  • 电子版ISSN:1432-0746
  • 出版年度:2016
  • 卷号:591
  • 页码:1-11
  • DOI:10.1051/0004-6361/201628475
  • 语种:English
  • 出版社:EDP Sciences
  • 摘要:Context. 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. Aims. 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. Methods. 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. Results. We show that for n input data points, cygrids runtime scales between O(n) and O(nlog 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. Conclusions. 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.
  • 关键词:methods: numerical;techniques: image processing
国家哲学社会科学文献中心版权所有