Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

SunPosition Calculator calculates the Sun's postion based on the location and time. What is the equation used for such a calculation?

share|cite|improve this question
I gave an outline of that calculation in [the unusual sundial question] – Andrew Jul 10 '11 at 23:33

This function is written in IDL, a programming language popular in the astronomy community. Although IDL is commercial software, the GNU Data Language is intended to be compatible and may help you work through the calculation if you want to port it to a different language.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.