Skykatana: a scalable framework to construct sky masks for the Vera Rubin Observatory and large astronomical surveys
Claudio Lopez, Emilio Donoso, Mariano Javier de L. Dominguez Romero
TL;DR
Skykatana offers a scalable, open-source framework to build, combine, and visualize sky masks at survey scale using HEALPix/HEALSparse and MOC representations. It integrates on-demand star masking via Gaia queries through HATS/LSDB, supported by empirically calibrated radius–magnitude relations from Rubin DP1, with memory-efficient, streaming I/O and a modular pipeline of stages. Key contributions include geometry-, property-, and catalog-based mask builders, breadth-first MOC chunking, and on-demand, high-order masking that can generate multi-billion-pixel masks within modest resources for a target order $o_{ m max}$, enabling reproducible angular selection functions. Demonstrations on an HSC–WISE composite mask and Rubin bright-star masks show practical applicability for Rubin/LSST-scale surveys and point toward extensions to weighted maps and probabilistic analyses.
Abstract
Modern wide-field surveys require robust spatial masks to excise bright-star halos, bleed trails, poor-quality regions, and user-defined geometry at scale. We present Skykatana, an open source pipeline that builds and combines boolean HEALPix/HEALSparse maps into science-ready masks and engineered for low-memory operation. Skykatana can efficiently construct, visualize multi-order coverage maps and generate random points in high-resolution masks over half of the celestial sphere with very limited resources and leveraging the hierarchical partition of data the HATS/LSDB framework. We demonstrate two end-to-end applications: (1) a Subaru HSC-WISE composite mask; and (2) Rubin star masks generated on demand in the Rubin Science Platform by querying HATS/LSDB Gaia data and assigning radii from empirical fits to Rubin DP1 data. We release full bright-star masks for various regions of the Rubin footprint and describe performance and scaling. The code, documentation, and examples are publicly available at https://github.com/samotracio/skykatana, and the LSST masks can be obtained from https://osf.io/r5vw6
