English

$\texttt{bayes_spec}$: A Bayesian Spectral Line Modeling Framework for Astrophysics

Instrumentation and Methods for Astrophysics 2024-11-05 v1 Astrophysics of Galaxies

Abstract

\texttt{bayes_spec} is a Bayesian spectral line modeling framework for astrophysics. Given a user-defined model and a spectral line dataset, \texttt{bayes_spec} enables inference of the model parameters through different numerical techniques, such as Monte Carlo Markov Chain (MCMC) methods, implemented in the PyMC probabilistic programming library. The API for \texttt{bayes_spec} is designed to support astrophysical researchers who wish to ``fit'' arbitrary, user-defined models, such as simple spectral line profile models or complicated physical models that include a full physical treatment of radiative transfer. These models are ``cloud-based'', meaning that the spectral line data are decomposed into a series of discrete clouds with parameters defined by the user's model. Importantly, \texttt{bayes_spec} provides algorithms to determine the optimal number of clouds for a given model and dataset.

Keywords

Cite

@article{arxiv.2411.00924,
  title  = {$\texttt{bayes_spec}$: A Bayesian Spectral Line Modeling Framework for Astrophysics},
  author = {Trey V. Wenger},
  journal= {arXiv preprint arXiv:2411.00924},
  year   = {2024}
}

Comments

5 pages, 2 figures, accepted for publication in JOSS

R2 v1 2026-06-28T19:44:50.769Z