phoptic – a Python package for reducing astronomical images
Open Access
- 6 January 2026
- journal article
- Published by Oxford University Press (OUP) in RAS Techniques and Instruments
- Vol. 5
Abstract
Publicly available photometry pipelines make astronomical data reduction accessible to non-experts, reduce the margin for human error, and enable reproducible reduction. In many cases, bespoke reduction software is written on a per-instrument basis; this results in rigid pipelines that cannot be straightforwardly applied to data from other instruments. To alleviate this problem, we present phoptic, an open source photometry pipeline written in Python. phoptic began as a dedicated pipeline for the OPtical TIming CAMera (OPTICAM), a triple-camera system mounted on the 2.1 m telescope at the Observatorio Astronómico Nacional in San Pedro Mártir, México. However, phoptic now serves as a generic photometry pipeline with a simple interface to reduce data from other instruments. At its core, phoptic leverages the astropy Python package, and affiliated packages thereof, to provide a flexible, modern, and interoperable reduction pipeline. In particular, phoptic uses photutils for background estimation, source detection, and performing aperture photometry. Additionally, phoptic implements optimal photometry, improving the signal-to-noise ratio over aperture photometry by up to $\sim 10$ per cent. We describe phoptic’s functionality, discuss its default behaviour, and demonstrate its flexible interface by reducing data from the HiPERCAM, MEXMAN, OPTICAM, and ULTRACAM instruments. We also review the performance of phoptic, and show that it is highly scalable on multicore CPUs.
Keywords
Funding Information
- Science and Technology Facilities Council (ST/X508767/1)
- Science and Technology Facilities Council (ST/X001121/1)
- Science and Technology Facilities Council (ST/R000824/1)
- Royal Society (NF170803)
- Royal Society (AL\221034)
- Royal Society (AL\24100056)
This publication has 65 references indexed in Scilit:
- Long-term optical photometry of V709 Cas using TESS: Refined periods and accretion geometryNew Astronomy, 2025
- First light simultaneous triple-channel optical observations of the OPTICAM system at the OAN-SPMNew Astronomy, 2024
- OPTICAM triple-channel astronomical image acquisition control software and external triggering synchronization systemAstronomy and Computing, 2023
- Astroalign: A Python module for astronomical image registrationAstronomy and Computing, 2020
- Evaluation of scientific complementary metal–oxide–semiconductor sensors for sky survey applicationsAstronomische Nachrichten, 2019
- Parallel astronomical data processing with Python: Recipes for multicore machinesAstronomy and Computing, 2013
- A new algorithm for differential photometry: computing anoptimum artificial comparison starAstronomische Nachrichten, 2005
- Fourier Techniques in X-Ray Timing1989
- The photometric method of detecting other planetary systemsIcarus, 1984
- Least-squares frequency analysis of unequally spaced dataAstrophysics and Space Science, 1976