The solar azimuth angle is the azimuth angle of the Sun's position. This horizontal coordinatedefines the Sun's relative direction along the localhorizon, whereas the solar zenith angle defines the Sun's apparent altitude. There are several conventions for the solar azimuth; however, it is traditionally defined as the angle between a linedue south and the shadow cast by a verticalrod on Earth. This convention states the angle is positive if the shadow is east of south and negative if it is west of south. For example, due east would be 90° and due west would be -90°. Another convention is the reverse; it also has the origin at due south, but measures anglesclockwise, so that due east is now negative and west now positive. However, despite tradition, the most commonly accepted convention for analyzingsolar irradiation, e.g. for solar energyapplications, is clockwise from due north, so east is 90°, south is 180°, and west is 270°. This is the definition used by NREL in their solar position calculators and is also the convention used in the [|formulas] presented here. However, Landsat photos and other USGSproducts, while also defining azimuthal angles relative to due north, take counterclockwise angles as negative.
Formulas
The following formulas assume the north-clockwise convention. The solar azimuth angle can be calculated to a good approximation with the following formula, however angles should be interpreted with care because the inverse sine, i.e. or, has multiple solutions, only one of which will be correct. The following formulas can also be used to approximate the solar azimuth angle, but these formulas use cosine, so the azimuth angle as shown by a calculator will always be positive, and should be interpreted as the angle between zero and 180 degrees when the hour angle,, is negative and the angle between 180 and 360 degrees when the hour angle,, is positive.. So practically speaking, the compass azimuth which is the practical value used everywhere on a compass can be calculated as The formulas use the following terminology: