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

Is there an accurate algorithm / method to determine the precise time of day/night when the sun is X degrees above (or below) the horizon for a given latitude Y at date Z?

Is this the same question here? Reverse Sun position algorithm? I'm having a hard to plugging in specifics.

share|cite|improve this question
up vote 2 down vote accepted

First, you need to know the Right Ascension and Declination of the Sun on that day. Then there are some angular relations connecting all of these. Everything is available in the RASC Observer's Handbook. Another way would be to interpolate the table produced by this program provided by the US Naval Observatory: Hope this helps!

share|cite|improve this answer

Your Answer


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