PetroFit: A Python Package for Computing Petrosian Radii and Fitting Galaxy Light Profiles

Robel Geda, Steven Crawford, Lucas R. Hunt, Matthew A. Bershady, Erik J. Tollerud +1 more
2/28/2022
astro-ph.IMastro-ph.GA

Official code: PetroFit/petrofit (34 stars, Python, last commit 2025-08-22).

Abstract

PetroFit is an open-source Python package, based on Astropy and Photutils, that can calculate Petrosian profiles and fit galaxy images. It offers end-to-end tools for making accurate photometric measurements, estimating morphological properties, and fitting 2D models to galaxy images.

Show full abstract

Petrosian metric radii can be used for model parameter estimation and aperture photometry to provide accurate total fluxes. Correction tools are provided for improving Petrosian radii estimates affected by galaxy morphology. PetroFit also provides tools for sampling Astropy-based models (including custom profiles and multi-component models) onto image grids and enables PSF convolution to account for the effects of seeing. These capabilities provide a robust means of modeling and fitting galaxy light profiles. We have made the PetroFit package publicly available on GitHub (PetroFit/petrofit) and PyPi (pip install petrofit).

View on arXivView PDF

Code Implementations(1)

PetroFit/petrofitOfficial100%

Python package for calculating Petrosian properties and fitting galaxy light profiles

347PythonMar 16, 20211 years ago
fittinggalfitpetrofitpetrosianpython+1 more

Similar Papers

Cite this paper

@article{geda2022petrofit,
  title  = {PetroFit: A Python Package for Computing Petrosian Radii and Fitting Galaxy Light Profiles},
  author = {Robel Geda and Steven Crawford and Lucas R. Hunt and Matthew A. Bershady and Erik J. Tollerud and Solohery M. Randriamampandry},
  year   = {2022},
  eprint = {2202.13493},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13493}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.13493.svg)](https://codeofpaper.com/paper/2202.13493)

Discussion