On 2005-02-21, Stuart Rogers wrote:
I am looking for a way to calculate this fairly simply in a script so I am
in need of someone to point me at some documentation somewhere which shows
the necessary calculation, then I can script it. I know there are website
which do this but I need to be able to run the calculations on the fly
minute by minute, hence the need to write my own!
You could probably use the following code - either in a utility you create
yourself, or by extracting the math and putting it into a script.
http://rredc.nrel.gov/solar/codes_algs/solpos/
Good luck,
Mike