arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1604.06667astro-ph.IM
收藏

Cygrid:一个快速的基于Cython卷积的Python网格模块

Cygrid: A fast Cython-powered convolution-based gridding module for Python

B. Winkel, D. Lenz, L. Flöer

摘要:

数据网格化是天文学和许多其他科学学科的共同任务。它是指将不规则采样数据重新排列到规则网格中。我们提出cygrid,通用编程语言Python的库模块。Cygrid可用于将数据重采样到任何目标坐标集合,尽管其典型应用涉及FITS地图或数据立方体。支持FITS世界坐标系标准。重网格算法是基于卷积的原始样本与核的任意形状。我们引入了一个查找表计划,使我们能够并行网格化,并结合它与HEALPix镶嵌的快速邻居搜索领域。我们表明,对于$n$输入数据点,cygrids运行时的规模在O(n)和O(n log n)之间,并分析使用多个CPU内核实现的性能增益。我们还比较了网格速度与其他技术,如最近邻,线性和三次样条插值。Cygrid是一个非常快速和通用的网格库,它的性能明显优于其他第三方Python模块,例如SciPy提供的线性和三次样条插值。

英文摘要:

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 $n$ 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑