<p>It's simple geometry, you are calculating the downward angle you need to look relative to the horizontal, from a given elevation, so see the horizon. To lowest order, that angle simply gets added to the angle of rotation of the Earth to make the limb of the Sun reach the horizon.</p>

<p>To calculate that angle, let's measure all distances relative to Earth radius, and say you are at altitude $x$ above the surface. Draw a straight line to the horizon, where that line makes a right angle to the radius of the Earth (it is tangent to the horizon at that point).</p>

<p>So now you have a right triangle with hypotenuse $1+x$, and a side of length $1$, so the angle between the direction you are looking, and the direction to the center of Earth, has a sine of $1/(1+x)$. That means the downward angle we want is however much less that angle is from a right angle. Let's call the downward angle we want $y$, so that $y \ll 1$ if measured in radians, and then what we have from the above is $\sin(\pi/2 - y) = 1/(1+x)$.</p>

<p>Using a trigonometric identity then says $\cos(y) = 1/(1+x)$. But since $x$ and $y$ are $\ll 1$, $\cos(y)$ is close to $1 - y^2/2$ and $1/(1+x)$ is close to $1-x$, so we can say $y$ is close to the $\sqrt{2x}$. That's where the formula comes from, the rest is just unit conversion from radians to degrees and from the radius of the Earth to the altitude in meters. </p>

CC BY-SA 3.0
2017-01-04T17:04:25.447Z
2017-05-04T23:42:32.107Z
2017-05-04T23:42:32.107Z
Ken G
<p>I'm new here and searched for solution but did not found one. I have found algorithms in order to calculate sunrise and sunset times for an observer on the surface of Earth with explanations of derivations of these formulae, but I want to improve it by including the altitude of the observer. I found <a href="https://en.wikipedia.org/wiki/Sunrise_equation#Hour_angle" rel="nofollow noreferrer">an article</a> in Wikipedia.</p>

<p>Could one explain to me, from where is this "2.076 degrees" in the formula $-2.076^{\mathrm{o}} \sqrt{\mathrm{elevation\:of\:observer\:in\:meters}}/60^{\mathrm{o}}$ derived and calculated?</p>

<p>Thanks in advance!</p>

<p><img src="https://i.sstatic.net/OM8lD.png" alt="Screenshot of equation in question"></p>

CC BY-SA 3.0
2017-01-04T16:28:58.943Z
I don't think you're going to easily track this down. The equation you're referencing appears to me to be an approximation to account for decreased refraction based on increased height. It is likely a functional fit to a computational model and not something derived from pure math/physics on paper. Your best bet is to try and find a citation for this equation and track down the original source and see how they came up with it.
zephyr
CC BY-SA 3.0
2017-04-04T20:45:05.013Z
I believe the altitude should only play a role if you are elevated wrt your local horizon. For example, if you are standing on a skyscraper.
imanorc
<the-sun><positional-astronomy>
About the formula for taking in count of the observer altitude in sunrise/sunset formula
khaled
# About the formula for taking in count of the observer altitude in sunrise/sunset formula

(Asked by: username_0 on 2017-01-03)

I'm new here and searched for solution but did not found one. I have found algorithms in order to calculate sunrise and sunset times for an observer on the surface of Earth with explanations of derivations of these formulae, but I want to improve it by including the altitude of the observer. I found [an article](https://en.wikipedia.org/wiki/Sunrise_equation#Hour_angle) in Wikipedia.

Could one explain to me, from where is this "2.076 degrees" in the formula $-2.076^{\mathrm{o}} \sqrt{\mathrm{elevation\:of\:observer\:in\:meters}}/60^{\mathrm{o}}$ derived and calculated?

Thanks in advance!

![Screenshot of equation in question](https://i.sstatic.net/OM8lD.png)

**Tags:** the-sun, positional-astronomy
> **Comments:**
> **username_1**: I don't think you're going to easily track this down. The equation you're referencing appears to me to be an approximation to account for decreased refraction based on increased height. It is likely a functional fit to a computational model and not something derived from pure math/physics on paper. Your best bet is to try and find a citation for this equation and track down the original source and see how they came up with it.  
> **username_2**: I believe the altitude should only play a role if you are elevated wrt your local horizon. For example, if you are standing on a skyscraper.  

---

## 1 answers

### Answer by username_3 on 2017-01-04. Score: 2

It's simple geometry, you are calculating the downward angle you need to look relative to the horizontal, from a given elevation, so see the horizon. To lowest order, that angle simply gets added to the angle of rotation of the Earth to make the limb of the Sun reach the horizon.

To calculate that angle, let's measure all distances relative to Earth radius, and say you are at altitude $x$ above the surface. Draw a straight line to the horizon, where that line makes a right angle to the radius of the Earth (it is tangent to the horizon at that point).

So now you have a right triangle with hypotenuse $1+x$, and a side of length $1$, so the angle between the direction you are looking, and the direction to the center of Earth, has a sine of $1/(1+x)$. That means the downward angle we want is however much less that angle is from a right angle. Let's call the downward angle we want $y$, so that $y \ll 1$ if measured in radians, and then what we have from the above is $\sin(\pi/2 - y) = 1/(1+x)$.

Using a trigonometric identity then says $\cos(y) = 1/(1+x)$. But since $x$ and $y$ are $\ll 1$, $\cos(y)$ is close to $1 - y^2/2$ and $1/(1+x)$ is close to $1-x$, so we can say $y$ is close to the $\sqrt{2x}$. That's where the formula comes from, the rest is just unit conversion from radians to degrees and from the radius of the Earth to the altitude in meters.


---

