LabView VIs for teaching and illustration of Earth-Sun geometry and to calculate extraterrestrial irradiance.