PowerBin: Fast Adaptive Data Binning with Centroidal Power Diagrams
arXiv:2509.06903 · doi:10.1093/mnras/staf1726
Abstract
Adaptive binning is a crucial step in the analysis of large astronomical datasets, such as those from integral-field spectroscopy, to ensure a sufficient signal-to-noise ratio (S/N) for reliable model fitting. However, the widely used Voronoi-binning method and its variants suffer from two key limitations: they scale poorly with data size, often as O(N^2), creating a computational bottleneck for modern surveys, and they can produce undesirable non-convex or disconnected bins. I introduce PowerBin, a new algorithm that overcomes these issues. I frame the binning problem within the theory of optimal transport, for which the solution is a Centroidal Power Diagram (CPD), guaranteeing convex bins. Instead of formal CPD solvers, which are unstable with real data, I develop a fast and robust heuristic based on a physical analogy of packed soap bubbles. This method reliably enforces capacity constraints even for non-additive measures like S/N with correlated noise. I also present a new bin-accretion algorithm with O(N log N) complexity, removing the previous bottleneck. The combined PowerBin algorithm scales as O(N log N), making it about two orders of magnitude faster than previous methods on million-pixel datasets. I demonstrate its performance on a range of simulated and real data, showing it produces high-quality, convex tessellations with excellent S/N uniformity. The public Python implementation provides a fast, robust, and scalable tool for the analysis of modern astronomical data.
15 pages, 9 figures. LaTeX. Accepted for publication in MNRAS. Implementation available in the PowerBin package at https://pypi.org/project/powerbin/
References in corpus (34)
- SciPy 1.0--Fundamental Algorithms for Scientific Computing in Python
- Array Programming with NumPy
- Parametric Recovery of Line-of-Sight Velocity Distributions from Absorption-Line Spectra of Galaxies via Penalized Likelihood
- Overview of the SDSS-IV MaNGA Survey: Mapping Nearby Galaxies at Apache Point Observatory
- Improving the full spectrum fitting method: accurate convolution with Gauss-Hermite functions
- Adaptive spatial binning of integral-field spectroscopic data using Voronoi tessellations
- CALIFA, the Calar Alto Legacy Integral Field Area survey: I. Survey presentation
- The Atlas3D project -- I. A volume-limited sample of 260 nearby early-type galaxies: science goals and selection criteria
- Structure and Formation of Elliptical and Spheroidal Galaxies
- The MUSE second-generation VLT instrument
- Evolutionary Stellar Population Synthesis with MILES. Part I: The Base Models and a New Line Index System
- The Atlas3D project - XV. Benchmark for early-type galaxies scaling relations from 260 dynamical models: mass-to-light ratio, dark matter, Fundamental Plane and Mass Plane
- The SAMI Galaxy Survey: instrument specification and target selection
- The Atlas3D Project - XXX. Star formation histories and stellar population scaling relations of early-type galaxies
- The Data Analysis Pipeline for the SDSS-IV MaNGA IFU Galaxy Survey: Overview
- Full spectrum fitting with photometry in pPXF: stellar population versus dynamical masses, non-parametric star formation history and metallicity for 3200 LEGA-C galaxies at redshift z~0.8
- The PHANGS-MUSE survey -- Probing the chemo-dynamical evolution of disc galaxies
- CALIFA, the Calar Alto Legacy Integral Field Area survey. III. Second public data release
- Adaptive Binning of X-ray data with Weighted Voronoi Tesselations
- The SAMI Galaxy Survey: Revisiting Galaxy Classification Through High-Order Stellar Kinematics
- Stellar kinematics across the Hubble sequence in the CALIFA survey: General properties and aperture corrections
- Mapping small-scale temperature and abundance structures in the core of the Perseus cluster
- Time Inference with MUSE in Extragalactic Rings (TIMER): Properties of the Survey and High-Level Data Products
- Kinematic signatures of nuclear discs and bar-driven secular evolution in nearby galaxies of the MUSE TIMER project
- The SAMI Galaxy Survey: Global stellar populations on the size-mass plane
- MUSE observations of M87: radial gradients for the stellar initial-mass function and the abundance of Sodium
- The Hot Interstellar Medium of Normal Elliptical Galaxies. I. A Chandra Gas Gallery and Comparison of X-ray and Optical Morphology
- A MUSE map of the central Orion Nebula (M 42)
- The inside-out formation of nuclear discs and the absence of old central spheroids in barred galaxies of the TIMER survey
- Dominant dark matter and a counter rotating disc: MUSE view of the low luminosity S0 galaxy NGC 5102
- Analysis of approximate nearest neighbor searching with clustered point sets
- Stellar Populations With Optical Spectra: Deep Learning vs. Popular Spectrum Fitting Codes
- The GECKOS Survey: Identifying kinematic sub-structures in edge-on galaxies
- The MUSE view of the Sculptor galaxy: survey overview and the planetary nebulae luminosity function