Wednesday, October 31, 2012

The direction of sunrise and sunset—the old fashioned way

…or another value of a good compass to sailors, photographers, and lawyers.

Sailors care about accurate compass bearings for position fixes and for evaluating the risk of collision as required of all mariners in the Navigation Rules:

Rule 7, Risk of Collision

(d) In determining if risk of collision exists the following considerations shall be among those taken into account:

(i) such risk shall be deemed to exist if the compass bearing of an approaching vessel does not appreciably change;

Note the word “shall.” This is not optional. The only way to measure such bearing changes in the allotted time is with a high quality compass.

Photographers sometimes need to know the precise direction of sunset so they can frame a picture precisely as they want it. A cheap compass will not do this as they cannot take bearings accurately enough to pin point a spot on the horizon. A good candidate for this task is the famous French model, known for some thirty years or more as the “hockey puck compass,” though no importer uses that name directly.  It sells for about $120. It can read a bearing to within ±1° or so, but we cannot count on that being the exactly correct bearing because local disturbances can throw this off somewhat, no matter how remote.  Leaning on a car would make much bigger errors than that. Your eyeglass frames could also, as well as your watch when holding this hand held instrument up to your eye.

So standard compass precautions must be taken, but that done, this compass will do the job nicely. It is is also small and rugged, which are bonuses in the field.  We would like to think that the compass in our iPhone might do the job, but they are not dependable for this precision. All electronic compasses are very sensitive to tilt angle.

But having the right compass is just step one. We then need to know what the direction of the sun is when we want to photograph it. If we are sticking with sunrise and sunset, we do not have to worry about time keeping. It happens when it happens.  Lawyers, on the other hand, might want to prove the sun was shining in their client’s eyes at any random time of day, so they do have to worry about time keeping.  We will come back to that.

I do not know of any one magic table that tells us exactly what we want, namely the magnetic bearing of the sun on the horizon for any latitude and longitude on any date. So we have to do a couple simple computations, after which we could create special tables for special locations.

First, the direction of the sun is an astronomical properly, totally independent of the magnetic field of the earth. Thus we must start with true directions. From the Nautical Almanac we can compute the direction of the sun at any time from any place, but this will be true directions (labeled T). That is, north is 000 T, east is 090 T, south is 180 T, and west is 270 T. Southwest would be 225 T. Or we can be more specific, as we will soon want to be, and the direction that is 20° south of west would be 250 T.

Now that the math is done, what do we need to know besides the date?  We need to know our latitude and we need to know the local magnetic variation. You can get your latitude from Google Earth. Just find the location you care about and look to the bottom of the screen. Magnetic variation (often called declination on land) is the difference between True North and Magnetic North. You can get it from the National Geophysical Data Center ( The variation will have a label, E or W. It is defined in such a way that true bearings = magnetic bearings + Var E (or – Var W).  For our application, we will be going backwards, so:

Magnetic bearing = True bearing + Var W
Magnetic bearing = True bearing – Var E.

Now we are left to finding the true bearing of the sun at sunrise and sunset. A celestial navigator can compute this readily from the Nautical Almanac, but this takes tools we do not need.  There is no one table that does this job specifically, but there is one we can use. It is called Table 22. Amplitudes ofthe Sun. It is from Bowditch’s American Practical Navigator (1977 or earlier). 

In Table 22, the word amplitude means the angular difference between the direction of sunrise and due east or the direction of sunset and due west. The motion of the sun is symmetric across the horizon, so these values are the same on a given day. If the sun rises 20° south of east, it will set 20° south of west. In this case the amplitude would be S 20°.

We do have to keep the mind engaged, however, because the arithmetic switches. This is apparent if you look at a compass rose—always a good idea at this stage. That is, 20° south of east means 090T + 20 = 110T, whereas 20° S of west means 270T – 20 = 250T.

And we are now almost done. We are asking for a rather sophisticated result, so it should not be a surprise that we have a couple steps to take. Bear in mind as well that we are doing this with paper tables. In the end, we have apps for this and you can punch a button and get it from your cell phone!

To simplify its presentation, Table 22 does not use date, but rather uses the astronomically more significant parameter called the sun’s declination. This is the same word as used on land for variation, but it is a totally different concept; it is the latitude directly below the sun at this day of the year. (You see now why mariners like to use magnetic variation rather than magnetic declination.)  We are using sun’s declination just as an index to access the tables. Table of the sun's declination.

Suppose we are at latitude 38N, on May 13, and the local magnetic variation is 10° W. What is the compass bearing of sunrise and sunset?

Refer to Declination Table to learn that on May 13 the sun’s declination is N 18° 14’ (18.23°).

Then turn to Table 22 for latitude 38 and see that the amplitude is about 23.5° (ie about half way between 23.1 and 23.7 — fractions of a degree do not matter here at all. You can round up or round down.)

Then apply the label N or S to the amplitude that is the same as that of the declination. North in this case, so amplitude is N 23.5°.

Then the true sunset direction would be located at 270 + 23.5 = 293.5T

And the magnetic (compass) direction would since we have west variation:

Compass of sunset = 293.5 + 10 = 203.5 M.

This method works with these tables included here alone and nothing more.  If you have a computer you can in principle get this data from various sources, but it is not quite as simple as one might guess. The main problem if you want accurate data (ie ±2°) is you have to get involved in time keeping, because on that approach you need to know the time of sunrise or sunset and the values you find in the newspapers will not be accurate and the accurate ones will require you to adjust the times for your longitude… something we have not even mentioned here, etc.

If you care to pursue this, the place to start is find the time of sunset for your location then come back to that page to get the precise true direction. You still have to apply the magnetic variation on your own... or post questions here and we will try to help.


JotM said...

Table 22 is also in the 2002 bicentennial edition of the "American Practical Navigator", which can be downloaded from:

David Burch said...

Yes. Thanks for the reminder. We have that link and others also at We made a custom copy because sometimes the NGA site does not work.

JotM said...

Thank you! It got me fiddling with Bowditch on the train while commuting again. :)