AstroPhot: Fitting Everything Everywhere All at Once in Astronomical Images
Connor StoneStephane CourteauJean-Charles Cuillandre
Yashar HezavehLaurence Perreault-LevasseurNikhil Arora Connor Stone
Stephane Courteau
Jean-Charles Cuillandre

Yashar Hezaveh
Laurence Perreault-Levasseur
Nikhil Arora
+6
AstroPhot is a Python-based astronomical image photometry solver that uses automatic differentiation and GPU/CPU acceleration via PyTorch. Its core contribution is a unified chi-squared forward optimization that simultaneously fits models for sky, stars, galaxies, PSFs, and more, recovering Bayesian posteriors and covariances of all parameters. It handles large, multi-band, multi-epoch, rotated, or dithered images, and optimizes overlapping objects together, preserving parameter covariances (including PSF–galaxy correlations). The open-source code supports Levenberg-Marquardt, gradient descent, and No-U-Turn MCMC sampling.

arXiv ·
· August 3, 2023