Equation for the Line of Night on a Map of Earth



Recently a friend of mine expressed an interest in knowing what the equation was for the night/day line on a rectangular map of the earth. For example:

[caption id="attachment_186" align="aligncenter" width="300" caption="Line of Night"]![Line of Night](http://128.31.5.103/wordpress/wp- content/uploads/2009/09/map-300x160.png)[/caption]

The line of night is generated by a projection of the Sun's light onto the Earth, which we will consider to be a perfect spheroid with semi-major axis of $latex R_1$ and semi-minor axis of $latex R_2$. If viewed from the "side" the line of night will appear to be a line with slope equal to that of the axial tilt (a.k.a obliquity) of earth. This is the inclination angle of Earth's planetary rotation axis in relation to its orbital plane, usually denoted by $latex \epsilon$

[caption id="attachment_187" align="aligncenter" width="300" caption="Earth / Sun System"]![Earth / Sun System](http://128.31.5.103/wordpress/wp- content/uploads/2009/09/earthsun-300x163.png)[/caption]

A typical map of the earth is a projection from spherical coordinates onto a cylindrical plane. This is done by drawing a rectangular image where the latitude ($latex \lambda$) is mapped to the x-axis and the longitude ($latex \phi$) is mapped to the y-axis (contrary to the coordinate system used by the digital imaging industry, here we describe the origin as being in the center of the image, with the positive x-axis being to the right, and positive y-axis being up).

Consider then a plane that is perpendicular to the earth's plane of orbit, and perpendicular to the vector pointing from the center of the earth toward the sun, and that intersects the earth at it's center. The line of night is the intersection of this plane with the Earth. From this observation we can develop an equation for the line of night in terms of $latex \phi$ and $latex \lambda$.

[caption id="attachment_189" align="aligncenter" width="180" caption="Lattitude and Longitude"]![Lattitude and Longitude](http://128.31.5.103/wordpress/wp- content/uploads/2009/09/earthB.png)[/caption]

[caption id="attachment_190" align="aligncenter" width="186" caption="Line of Night"]![Line of Night](http://128.31.5.103/wordpress/wp- content/uploads/2009/09/earthA.png)[/caption]

If we place a coordinate system on the surface of the earth, centered at the intersection of the line of night with the equator with the positive x-axis corresponding to positive $latex \lambda$ and positive y-axis corresponding to positive $latex \phi$ we can describe the line-of-night plane as

[latex]y = s x[/latex]

where the slope $latex s$ is related to the obliquity as

[latex] s = \frac{1}{\tan(\epsilon)} [/latex]

where $latex \epsilon$ is the inclination of the axial tilt of the Earth's axis at solstice ($latex \epsilon_0$) scaled according to the position of the Earth in it's orbit

[latex] \epsilon = \epsilon_0 \cos( \frac{day}{360} ) [/latex]

The inclination of the earth's axis at solstice is $latex \epsilon_0 = 23.5^\circ $

From the parameterization of a spheroid, we know that

[latex] x = R_1 \sin( \lambda ) \cos( \phi ) [/latex]

[latex] y = R_2 \sin( \phi ) [/latex]

Combining these with the equation above for the line-of-night plane we see that

[latex] y = \frac{1}{\tan( \epsilon )} x [/latex]

[latex] R_2 \sin( \phi ) = \frac{1}{\tan( \epsilon )} R_1 \sin( \lambda ) \cos( \phi ) [/latex]

[latex] \tan( \phi ) = \frac{1}{\tan( \epsilon )} \frac{R_1}{R_2} \sin( \lambda ) [/latex]

[latex] \phi = \text{tan}^-1 \left( \frac{1}{\tan( \epsilon )} \frac{R_1}{R_2} \sin( \lambda ) \right) [/latex]

Plotting the value of the longitude against latitude over a range of axial inclinations from $latex \epsilon = 0$ to $latex \epsilon = 23.5^\circ$, and assuming $latex R_1 = R_2$ results in the following:

[caption id="attachment_202" align="aligncenter" width="300" caption="Plot of Resulting Line-of-Night Equation"]![Plot of Resulting Line-of-Night Equation](http://128.31.5.103/wordpress/wp-content/uploads/2009/09 /lineofnight_plot-300x241.png)[/caption]

Which has exactly the shape we were looking for.

Comments


Comments powered by Disqus