It is said that absorption lines originate from regions higher in the photosphere where the gas is cooler. The gas should be in the process of ionization,recombination,ionization,recombination.... ...
How do I get the longitude/latitude from zenith/azimuth? Or how can I position my sun in a 3d application? code extracted from here ...