I think it's fine that the spectra are stored as plain text files in res/, but it would be good to convert the current script src/insert_stellar.py from Python to Julia. It should also check for energy conservation when down-binning the spectra.
An alternative approach would instead be to load the stellar spectrum (+rayleigh scattering) into memory directly, rather than modifying the spectral file on the disk.
I think it's fine that the spectra are stored as plain text files in
res/
, but it would be good to convert the current scriptsrc/insert_stellar.py
from Python to Julia. It should also check for energy conservation when down-binning the spectra.