Sun Position Algorithm

Simple algorithm to calculate the sun position, accurate to within 30 arcsec in the period 2020-2050.
Updated 26 Nov 2020

View License

Simple and fast algorithm to compute the Sun's position. For more details see the open publication by M.J. Blanco, K. Milidonis and A.M. Bonanos, "Updating the PSA Sun Position Algorithm", Solar Energy, Vol. 212, pp. 339-341, 2020, DOI:10.1016/j.solener.2020.10.084. Please reference the article in your work.

Cite As

Aristides Bonanos (2024). Sun Position Algorithm (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: sunpath-chart

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes