Skip to Content
Find More Like This
Return to Search

Solar and Moon Position Algorithm (SAMPA)

National Renewable Energy Laboratory

Contact NREL About This Technology

Technology Marketing Summary

This algorithm calculates the solar and lunar zenith and azimuth angles in the period from the year -2000 to 6000, with uncertainties of +/- 0.0003 degrees for the Sun and +/- 0.003 degrees for the Moon, based on the date, time, and location on Earth.


The algorithm can be used for solar eclipse monitoring and estimating the reduction in solar irradiance for many applications, such as smart grid, solar energy, etc.


High degree of accuracy.

Applications and Industries

Solar/Lunar Tracking Device Manufacturing
Solar/Lunar Tracking Simulation Software

More Information

SAMPA can be accessed here

This software is copyrighted.  Please contact NREL for a commercial use license.

Technology Status
Technology IDDevelopment StageAvailabilityPublishedLast Updated
SWR 12-17ProductionAvailable10/16/201310/16/2013

Contact NREL About This Technology

To: Jean Schulte<>