pyKurucz: A Pure Python Reimplementation of Kurucz SYNTHE for Stellar Spectrum Synthesis
Elliot M. Kim, Yuan-Sen Ting

TL;DR
pyKurucz is a fully Python-based reimplementation of the SYNTHE stellar spectrum synthesis code, enabling easier integration with modern workflows while maintaining high accuracy validated against the original Fortran version.
Contribution
It provides the first line-by-line Python translation of SYNTHE, eliminating the need for Fortran and facilitating integration with machine learning and survey pipelines.
Findings
Achieves sub-0.01% median agreement with original SYNTHE across diverse stellar models.
Requires no Fortran at any stage, simplifying installation and maintenance.
Enables direct integration with modern data analysis workflows.
Abstract
pyKurucz is a pure Python reimplementation of Kurucz's SYNTHE, the standard code for computing synthetic stellar spectra. The original Fortran, written decades ago in a legacy dialect, is difficult to compile with modern toolchains without significant manual patching, and its long-term maintenance is uncertain following the passing of Robert L. Kurucz in 2025. pyKurucz is not a wrapper around Fortran but a line-by-line translation: continuous and line opacity from approximately 1.3 million atomic transitions, Voigt profiles, hydrogen Stark broadening, Saha-Boltzmann populations, molecular equilibrium for 189 species, and radiative transfer, all in Python with NumPy, SciPy, and Numba, requiring no Fortran at any stage. Validated against the original across 100 atmosphere models spanning 2500 K cool giants to 44,000 K O stars over 300-1800 nm at resolving power R = 300,000, it achieves…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsStellar, planetary, and galactic studies · Astrophysics and Star Formation Studies · Astronomy and Astrophysical Research
