SolarPosition is a REXX adaptation of solpos.c by Martin Rymes of the National Renewable Energy Laboratory.  It will give solar azimuth, elevation and a suite of other variables, including energy received on a flat panel.  For information see http://rredc.nrel.gov/solar/codes_algs/solpos/   Also the code is rather straight forward and a lot of information is given as comments.

To use:

Place REXXLIB.DLL somewhere along your LIBPATH.  Then run SolarPosition1_0.cmd.  To change location of other controls edit the .cmd file.  All of the parameters are at the first of the program.

The program can be easily ported to other operating systems by supplying a different DLL with the trig functions and exp() and pow().

Doug Rickman
Nov. 30, 2000
