Introducing STARDIS: An Open and Modular Stellar Spectral Synthesis Code
Joshua V. Shields, Wolfgang Kerzendorf, Isaac G. Smith, Tiago M. D. Pereira, Christian Vogl, Ryan Groneck, Andrew Fullard, Jaladh Singhal, Jing Lu (陆晶), Christopher J. Fontes · 2025
Read Introducing STARDIS: An Open and Modular Stellar Spectral Synthesis Code by Joshua V. Shields, Wolfgang Kerzendorf, Isaac G. Smith, Tiago M. D. Pereira, Christian Vogl, Ryan Groneck, Andrew Fullard, Jaladh Singhal, Jing Lu (陆晶), Christopher J. Fontes (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-17762.txt.
Introduction
Joshua Shields and colleagues introduced an open code in 2025 that builds synthetic starlight spectra. Given a model of a star's atmosphere, spectral synthesis predicts the exact rainbow of light the star should emit, from near-ultraviolet to infrared. Their Python code, STARDIS, is modular and open-source, aimed at common Sun-like stars, and the paper lays out its structure, inputs, physics, and assumptions for other groups to inspect and extend.
Validation compares its spectra against a sister code given identical atmospheres, and qualitatively against a leading Phoenix model for the Sun. Agreement for solar models lands within a few percent or better, while ultraviolet output diverges, most in cooler stars. Known limits help users trust the tool where it counts.
Catalog record
| CREATOR | Joshua V. Shields, Wolfgang Kerzendorf, Isaac G. Smith, Tiago M. D. Pereira, Christian Vogl, Ryan Groneck, Andrew Fullard, Jaladh Singhal, Jing Lu (陆晶), Christopher J. Fontes |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 49 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2504-17762
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Introducing STARDIS: An Open and Modular Stellar Spectral Synthesis Code Joshua V. Shields, Wolfgang Kerzendorf, Isaac G. Smith, Tiago M. D. Pereira, Christian Vogl, Ryan Groneck, Andrew Fullard, Jaladh Singhal, Jing Lu (陆晶), Christopher J. Fontes Abstract We introduce a new 1D stellar spectral synthesis Python code called stardis . stardis is a modular, open-source radiative transfer code that is capable of spectral synthesis from near-UV to IR for FGK stars. We describe the structure, inputs, features, underlying physics, and assumptions of stardis as well as the radiative transfer scheme implemented. To validate our code, we show spectral comparisons between stardis and korg with the same input atmospheric structure models, and also compare qualitatively to phoenix for solar models. We find that stardis generally agrees well with korg for solar models on the few percent level or better, that the codes can diverge in the ultraviolet, with more extreme differences in cooler stars. stardis can be found at https://github.com/tardis-sn/stardis , and documentation can be found at https://tardis-sn.github.io/stardis/ . Astropy [ 6 , 7 , 8 ] , pandas [ 68 , 61 ] , Scipy [ 65 ] , NumPy [ 25 ] , tardis ( Kerzendorf & Sim 34 ; version: Kerzendorf et al. 33 ) https://www.astropy.org/ https://pandas.pydata.org/ https://scipy.org/ https://numpy.org/ https://github.com/tardis-sn/tardis I Introduction The practice of measuring chemical abundances in stars has been and remains a powerful tool in astrophysics. This practice can entail comparisons of synthetic stellar spectra to observed ones, specifically matching the observed chemical line features against synthetic spectra generated over a set of astrophysical stellar parameters [ 14 , 19 , i.e., varying the composition and structure of the stellar atmosphere to create a set of models as seen in e.g.,] . Critical to this process is the generation of synthetic stellar spectra, which has historically been handled by a suite of codes. These include, but are not limited to, moog [ 57 , 58 ] , cmfgen [ 27 ] , turbospectrum [ 50 ] , synthe [ 37 , 55 ] , sme [ 63 ] , spectrum [ 21 ] , synspec [ 28 ] , phoenix [ 26 , 12 ] , and korg [ 69 ] . We present stardis , an open-source finite-difference stellar atmospheric spectral synthesis code written in Python, that is one of the most used and taught languages in astronomy [ 22 , 56 ] . The foundation of Python as a learning language ensures stardis is approachable and expandable by current and future astrophysicists. To date, no other stellar spectral synthesis Python code exists. stardis is built in part on structures from the tardis code [a supernova spectral synthesis code released in 34 , and the adaptations are detailed explicitly in Section II ] . This work uses stardis v2025.04.23, which functions as a 1D local thermodynamic equilibrium (LTE) spherical and plane-parallel stellar atmospheric radiative transfer code and opacity solver. We have written stardis to be highly modular and easily expandable. Arbitrary chemical compositions, densities, temperatures, etc. can be supplied, allowing for tailored spectral investigations. stardis uses the carsus 1 1 1 https://tardis-sn.github.io/carsus/ package to prepare and synthesize novel atomic and molecular data from a variety of sources including National Institute of Standards and Technology (NIST) [ 1 ] , the Kurucz database [ 39 ] , the CHIANTI database [ 17 , 18 ] , VALD [ 49 ] , and others. Finally, the code is accessible on GitHub and maintained by an active collaboration with detailed documentation for application, maintenance, and extensibility that is intended to provide a low barrier to both usage and contribution. In Section II , we describe the code including the inputs and the calculations that it performs to obtain a synthetic spectrum. In Section III we compare synthetic spectra produced by stardis primarily to those generated with the same input parameters by korg . We conclude the paper in Section IV . II Code Description Figure 1: A graphic flowchart showing the operation of stardis . All inputs are parsed in the input (I/O) stage. The code then creates a Stellar Model that sets up the physical grid at which all future parameters will be evaluated. On this grid, the Stellar Plasma determines the state of the plasma in the atmosphere with the specified quantities, which is then used to calculate the opacity of the plasma. Finally, the simulation raytraces through that plasma a user-specified number of times, and the rays are averaged to create a stellar flux through the atmosphere. The calculated flux that emerges from the top of the atmosphere is is the output spectrum. stardis breaks spectral synthesis into four key steps, as shown in Figure 1 . First, it begins in the input stage which ingests the atmosphere, atomic data, and configuration for the code. stardis can currently either use the atmosphere (density, temperature, chemical composition vs depth) output of Model Atmospheres with a Radiative and Convective Scheme (MARCS) [ 24 ] or Modules for Experiments in Astrophysics (MESA) [ 44 , 45 , 46 , 47 , 48 , 32 ] , modify one such existing model, or entirely generate a model from scratch based on input from the user. The input module also reads atomic and molecular structure data. The input/output machinery is described in Section II.1 . The next step, molecular formation as well as excitation and ionization of atoms and molecules, is detailed in Section II.3.1 . We describe the opacity calculations in Section II.4 . The ray-tracing prescription to solve the radiative transfer equation at each depth point throughout the atmosphere is outlined in Section II.5.2 . Finally, the rays traced through the atmosphere are combined with a weighted average to obtain the disk-averaged stellar spectrum. Note that all calculations, where units are required, are performed in the centimeter-gram-second unit system. II.1 Inputs stardis requires four primary inputs for spectral synthesis. First, a chemical data file that includes the necessary information for chemicals in the atmosphere (see Section II.1.1 ). Second, some way to define the stellar atmosphere, notably the structure and composition of (see Section II.2 ). Third, a configuration file that specifies the various physics and details of computation (i.e. what physics the user wants to include, as well as computational choices such as how many threads to allow for multiprocessing, how many angles to sample through the atmosphere, etc.). Fourth, the code requires wavelengths or frequencies to compute fluxes on. II.1.1 Chemical Data and Line Lists stardis requires atomic weights, ionization energies, energy levels, molecular dissociation energies, and information about line transitions of the atoms and molecules. stardis can read the file format created by the sister package named carsus [ 51 ] . As of this work, stardis utilizes carsus synthesized atomic weights, ionization energies, and atomic configurations from NIST, atomic line transitions from Kurucz & Bell [38] , line transitions from the Vienna Atomic Line Database (VALD) [ 49 , 53 , 35 , 36 , 52 , 43 ] , and molecular dissociation energies, partition functions and equilibrium constants from Barklem & Collet [10] . Once data from these sources are synthesized, however the user specifies, the synthesized data are put into an