VoigtFit: A Python package for Voigt profile fitting

Jens-Kristian Krogager
3/3/2018
astro-ph.IM

Official code: jkrogager/VoigtFit (35 stars, Ruby, MIT, last commit 2026-09-25).

Abstract

I present a Python package developed for fitting Voigt profiles to absorption lines. The software fits multiple components for various atomic lines simultaneously allowing parameters to be tied and fixed.

Show full abstract

Moreover, the code is able to automatically fit a polynomial continuum model together with the line profiles. Lastly, a physical model can readily be used to constrain thermal and turbulent broadening of absorption lines as well as implementing molecular excitation models. The code can be run with interactive features such as manual continuum placement locally around each line, manual masking of undesired fitting regions, and interactive definition of velocity components for various elements. This greatly improves the ease by which the initial guesses can be estimated. Since the code is written in pure Python, it can easily be scripted and modified to fit the user's needs. The code uses a $χ^2$ minimization approach to find the best solution. The code and a set of test-data together with the full documentation is available on GitHub.

View on arXivView PDF

Code Implementations(1)

jkrogager/VoigtFitOfficial100%
MIT

Python code to fit absorption lines semi-interactively

3512Ruby, PythonNov 30, 20162 months agoMIT

Similar Papers

Cite this paper

@article{krogager2018voigtfit,
  title  = {VoigtFit: A Python package for Voigt profile fitting},
  author = {Jens-Kristian Krogager},
  year   = {2018},
  eprint = {1803.01187},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1803.01187}
}

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/1803.01187.svg)](https://codeofpaper.com/paper/1803.01187)

Discussion