Bagpipes generates realistic model galaxy spectra and fits these to spectroscopic and photometric observations.
https://ui.adsabs.harvard.edu/abs/2018MNRAS.480.4379C