Bright Star Subtraction Pipeline for LSST: Progress Review
Abstract
We present the Bright Star Subtraction (BSS) pipeline for the Vera C. Rubin Observatory’s Legacy Survey of Space and Time (LSST). This pipeline generates an extended PSF model using observed stars and subtracts the model from the bright stars in LSST data. When testing the pipeline on Hyper Suprime-Cam (HSC) data, we find that the shape of the extended PSF model depends on the location of the detector on the camera’s focal plane. The closer a detector is to the edge of the focal plane, the less the extended PSF model is circularly symmetric. We introduce an algorithm that allows the user to consider the location dependency of the model.
1Australian Astronomical Optics, Macquarie University, North Ryde, NSW 2113, Australia; [email protected]
2Astrophysics and Space Technologies Research Centre, Macquarie University, Macquarie Park, NSW 2109, Australia
3Australian Research Council Centre of Excellence for All Sky Astrophysics in 3 Dimensions (ASTRO 3D), Australia
4Department of Astrophysical Sciences, Princeton University, Princeton, NJ 08544, USA
5School of Physics, University of New South Wales, Sydney, NSW 2052, Australia
6Centre for Astrophysics Research, School of Physics, University of Hertfordshire, Hatfield, UK
1 Introduction
The unprecedented surface brightness depths that the Vera C. Rubin Observatory’s LSST will reach when imaging the southern sky provides a spectacular opportunity for studying Low Surface Brightness (LSB) structures around galaxies (e.g., Ivezić et al. 2019; Brough et al. 2020). The presence of bright stars in such deep images can result in an over-estimation of the sky background if the bright stars are not robustly modeled to large enough radii and subtracted prior to background measurements. Over-subtraction of the sky background destroys LSB structure in the type of deep imaging expected to be produced by LSST (Infante-Sainz et al. 2020; Montes et al. 2021; Martínez-Lombilla et al. 2023). To prevent this, we are developing the Bright Star Subtraction (BSS) pipeline for LSST (Bazkiaei et al., in prep.). The BSS pipeline will robustly model the stellar profile of bright stars out to several hundred arcseconds. This extended Point Spread Function (PSF) model is subsequently used to subtract bright stars from deep images prior to sky background estimation. A key benefit of this pipeline will be an increase in the effective area of LSST, avoiding the need to mask large areas around bright stars. For example in the HSC Subaru Strategic Program (SSP) survey (Aihara et al. 2018), star masks remove 20 of survey area (Aihara et al. 2022).
In this work, we use data from the HSC SSP survey to test our bright star subtraction pipeline. HSC consists of 104 science detectors over a 1.5o diameter field of view (Miyazaki et al. 2018). The Release Candidate 2 (RC2) dataset (Wood-Vasey et al. 2019) is a subset of HSC data equating to 5 sq. deg. from 150 visits across 5 broad bands (g, r, i, z, y). The RC2 was constructed by the LSST Data Management (DM) team to provide a sufficiently large dataset with which to test ongoing algorithm changes to the LSST Science Pipelines. As such, this makes it ideally suited for testing the Bright Star Subtraction pipeline for LSST.
2 The Bright Star Subtraction Pipeline
At present, the BSS pipeline utilizes three tasks from the LSST Science Pipelines111https://pipelines.lsst.io/ (Bosch et al. 2018, 2019): ProcessBrightStarsTask, MeasureExtendedPsfTask and SubtractBrightStarsTask. Each task is a highly configurable Python class. The net result of this pipeline is the generation of a 2D extended PSF model (i.e. out to several hundred arcseconds) and the subtraction of the scaled model from bright stars in calibrated exposures. The sections below discuss each task in more detail.
2.1 ProcessBrightStarsTask
This task takes calibrated exposures and the Gaia reference catalog (Gaia Collaboration 2016, 2023; Babusiaux et al. 2023) as an input and produces normalized cutouts (‘stamps’) of stars. Stars brighter than a user-defined magnitude limit are identified using the data butler (Jenness et al. 2022), and a cutout centered on the star with dimensions specified by the user is constructed. The task then normalizes the flux level of the stamp using the value of the flux within a user-defined annulus centered on the star (‘annular flux’). Optionally, a limit for the minimum fraction of valid pixels within an annulus can be specified, with only successful annuli preserved. At the conclusion of this task, a single FITS file containing the normalized stamps and their mask planes is constructed. Information on the stellar ID, magnitude and annular flux are persisted in the FITS header.
2.2 MeasureExtendedPsfTask
This task stacks normalized star stamps to generate an extended PSF model. Various statistical methods for stacking are available, including median, mean, and sigma-clipped mean (default) with a user-defined outlier rejection sigma ( here).
We find that extended PSF models generated for individual HSC detectors depend strongly on the detector’s location on the focal plane. The further a detector is from the center, the greater the asymmetry of the extended PSF model (see Figure 1).

To address detector location dependency on the extended PSF model, the user can optionally define detector ‘regions’ on the focal plane. Each region may consist of one or more detectors, thereby allowing for an increase in signal-to-noise at the expense of a loss in some positional information. Stamps from all detectors in a region are used to generate the per-region 2D extended PSF model. These regional extended PSF model are then used to subtract bright stars from calibrated exposures (see below).
2.3 SubtractBrightStarsTask
This task scales generated a 2D extended PSF model to the brightness level of a star and subtracts it. The Gaia reference catalog is used to identify all stars brighter than a user-defined threshold which are to be subtracted. When all identified stars have been subtracted, a subtracted calibrated exposure is produced. Each subtracted, calibrated exposure is stored in the data butler as a data product which may be retrieved as a FITS file on request.
Two extended PSF scaling types are provided: annularFlux and leastSquare (default) algorithms. The annularFlux algorithm multiplies the extended PSF model by the annular flux of the star. The leastSquare algorithm finds the least square scaling factor and multiplies the model by that factor.
Some stars may not ultimately be subtracted. There are two primary reasons for this occurring. First, these stars may have been flagged as a rejected star when the normalized stamps were originally produced using ProcessBrightStarsTask. Second, the magnitude limit for stars to be subtracted may be fainter than the magnitude limit originally chosen to produce the normalized star stamps.
As rejected stars have no valid flux within the normalization annulus, this task iteratively tests a larger annulus to find a flux. The first annulus at this step has an inner radius equal to the outer radius of the user-defined normalization annulus in ProcessBrightStarsTask. The width of the annulus is conserved. If no flux is found within this new annulus, the same procedure is repeated again to extend out to a larger annulus. The search for a valid flux measurement continues following this recipe until the outer radius of the annulus reaches the edge of the stamp. If no flux is found, the star will not be modeled nor subtracted. For the second group of stars, the task carries out the same process but starts from the normalization annulus. For each subtracted calibrated exposure, the task produces one output that contains stamps of unsubtracted stars.
3 Works in progress and future works
This paper describes the current status of the Bright Star Subtraction (BSS) pipeline. Efforts are ongoing to improve the performance of the pipeline, add new functionality, and improve documentation. Current topics of interest are exploring the use of multiple magnitude bins of stars to model different profile regions of the extended PSF. We are also looking to extend our rejection methods (e.g. rejecting stars with bright neighbors), improve model scaling for stars near extended sources, develop methods for automatically and regularly measuring the fidelity of our results, and to add more unit testing capability.
Acknowledgments
This material is based upon work supported in part by the National Science Foundation through Cooperative Agreement AST-1258333 and Cooperative Support Agreement AST-1202910 managed by the Association of Universities for Research in Astronomy (AURA), and the Department of Energy under Contract No. DE-AC02-76SF00515 with the SLAC National Accelerator Laboratory managed by Stanford University. Additional Rubin Observatory funding comes from private donations, grants to universities, and in-kind support from LSSTC Institutional Members.
This work has made use of data from the European Space Agency (ESA) mission Gaia (https://www.cosmos.esa.int/gaia), processed by the Gaia Data Processing and Analysis Consortium (DPAC, https://www.cosmos.esa.int/web/gaia/dpac/consortium). Funding for the DPAC has been provided by national institutions, in particular the institutions participating in the Gaia Multilateral Agreement.
References
- Aihara et al. (2022) Aihara, H., AlSayyad, Y., & et al. 2022, PASJ, 74, 247
- Aihara et al. (2018) Aihara, H., Arimoto, N., & et al. 2018, PASJ, 70, S4
- Babusiaux et al. (2023) Babusiaux, C., Fabricius, C., & et al. 2023, A&A, 674, A32
- Bosch et al. (2019) Bosch, J., AlSayyad, Y., & et al. 2019, in ADASS XXVII, edited by P. J. Teuben, M. W. Pound, B. A. Thomas, & E. M. Warner, vol. 523 of ASP Conf. Ser., 521
- Bosch et al. (2018) Bosch, J., Armstrong, R., & et al. 2018, PASJ, 70, S5
- Brough et al. (2020) Brough, S., Collins, C., & et al. 2020, arXiv e-prints, arXiv:2001.11067
- Gaia Collaboration (2016) Gaia Collaboration 2016, A&A, 595, A1
- Gaia Collaboration (2023) — 2023, A&A, 674, A1
- Infante-Sainz et al. (2020) Infante-Sainz, R., Trujillo, I., & Román, J. 2020, MNRAS, 491, 5317
- Ivezić et al. (2019) Ivezić, Ž., Kahn, S. M., & et al. 2019, ApJ, 873, 111
- Jenness et al. (2022) Jenness, T., Bosch, J. F., & et al. 2022, in Software and Cyberinfrastructure for Astronomy VII, vol. 12189 of Proc. SPIE, 1218911
- Martínez-Lombilla et al. (2023) Martínez-Lombilla, C., Brough, S., & et al. 2023, MNRAS, 518, 1195
- Miyazaki et al. (2018) Miyazaki, S., Komiyama, Y., & et al. 2018, PASJ, 70, S1
- Montes et al. (2021) Montes, M., Brough, S., Owers, M. S., & Santucci, G. 2021, ApJ, 910, 45
- Wood-Vasey et al. (2019) Wood-Vasey, M., Bellm, E., & et al. 2019, DMTN-091: Test Datasets for Scientific Performance Monitoring, Vera C. Rubin Observatory. URL: https://dmtn-091.lsst.io/