A Simple Insolation Model

(Please read this file for an explanation of these calculations.)

INPUT VALUES:
Location, latitude (+N) and longitude (+E) decimal degrees
Date, year (YYYY) month (MM) day (DD)
Time, HH MM SS UTC
Barometric pressure, mb -- actual value ("station pressure") at site elevation Total column water vapor, cm H2O
Aerosol transmission factor Solar constant, W/m2
SUN POSITION:
Solar zenith angle, deg Azimuth angle, eastward from North Relative air mass
Earth/sun radius, AU Equation of time, minutes (+ value means that solar noon occurs before clock noon at Greenwich Meridian.)
ATMOSPHERE VALUES:
TrTg Tw Ta
INSOLATION DATA:
Insolation, W/m2
Clock time for solar noon HH MM SS local standard time Add this many hours to get to UT
Zenith angle at solar noon Azimuth angle, eastward from North Relative air mass at solar noon
At solar noon, TrTg Tw Ta
Maximum insolation for this day, W/m2 Approximate day length, hours