Skip to content
Review Open access

phoptic - a Python package for reducing astronomical images

Jul 2026 · RAS Techniques and Instruments · 1 citation · 67 references
Physics

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 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 ~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 multi-core CPUs.

Read PDF