This is my first post here, so a big Hello to you all. I have been a long time lurker at the ompf forum and just today discovered this place.
I have been meaning to finish the 'Physical Sun' part of my implementation of the original Preetham paper. I am stuck on a few things so I hope you guys can help.
a) Units: The sky seems to be in cd/m^2 but the sun spectral intensity on page 28 is in W/cm^2/um/sr. First, why is there a "per micro-meter" part to the units. Second, what is the correct way to go from these units for the sun to cd/m^2? I've google'd, but I'd rather trust the answers here

b) Spectral Sampling: In the paper, the Sun's spectral radiance just outside the earth's atmosphere is attenuated/scaled by various absorption factors. The attenuation factors are listed for some, but not all wavelengths in the visible spectrum. The question is what values do you use for these absorption factors for wavelengths for which there is nothing listed? Should I use a value of 1 to eliminate attenuation of sunlight for these wavelengths? And what is a good resource for looking up how to best treat irregularly sampled spectral data?
Many thanks for taking the time to go through this. All help greatly appreciated.
Amaan