Artificial Atmospheric Absorption for Spectrum Generation

The solar spectrum shows up at Earth looking pretty close to a black body of 5777 K. As it goes through the Earth's atmosphere, there are various absorption and scattering interactions that change the spectrum to produce some distinct lines and features. I was curious how I might recreate the solar spectrum as measured on the surface of the Earth if I had a beam of light from a warm blackbody of…