Been meaning to do this one for awhile, hacked some code to work out the sun direction (azimuth and altitude) for any given location and any day and time of the year. Working on some research in splitting global and diffuse irradiance levels, so this might be used later to automate the process of creating a model.