Text this: The prediction of the emission spectra of flares and solid propellant rockets