popsynth: A generic astrophysical population synthesis framework
Abstract
Simulating a survey of fluxes and redshifts (distances) from an astrophysical population is a routine task. \texttt{popsynth} provides a generic, object-oriented framework to produce synthetic surveys from various distributions and luminosity functions, apply selection functions to the observed variables and store them in a portable (HDF5) format. Population synthesis routines can be constructed either using classes or from a serializable YAML format allowing flexibility and portability. Users can not only sample the luminosity and distance of the populations, but they can create auxiliary distributions for parameters which can have arbitrarily complex dependencies on one another. Thus, users can simulate complex astrophysical populations which can be used to calibrate analysis frameworks or quickly test ideas.
- Publication:
-
The Journal of Open Source Software
- Pub Date:
- July 2021
- DOI:
- 10.21105/joss.03257
- arXiv:
- arXiv:2107.08407
- Bibcode:
- 2021JOSS....6.3257B
- Keywords:
-
- Python;
- Stan;
- astronomy;
- population synthesis;
- cosmology;
- Astrophysics - Instrumentation and Methods for Astrophysics
- E-Print:
- Accepted in JOSS