Celestial Navigation Plugin for OpenCPN


Introduction

The plugin is designed to make celestial navigation possible and to provide a visual way to use and verify celestial measurements. Expanding on the concept of line of position, area of position incorporates measurement error. The plugin also displays the true positions (generally a circle, not a line). An uncommon feature is the ability to take sights based on bearing instead of only altitude.

Taking a Sight

A sight is an angular measurement taken of an astronomical body using (typically) a sextant.

Computing a Fix

Once there are two or more sights taken, it is possible to compute a fix for location. When there are only two sights, or in some cases with more, it is possible that the program will converge on the wrong location (local minima) so in this case it is advisable to enter the closest dead reckoning latitude and longitude. The regression is least squares to find a position on earth at sea level. It would be technically easy to make this work at various altitudes, but I didn't bother to implement this. For sights which are shifted (from dead reckoning movement over time), or for magnetic north azimuth sights, it is extremely complicated and difficult to implement the math required to perform a fix operation. In this case, the computer would find the fix the same way a human can visually (which is not implemented). It is also currently possible to compute a fix only from altitude shots (true north Azimuth could be implemented in the future)

Pitfalls

Future Improvements

In the future I plan to implement computing area fixes, show night/day areas, support for moon phases, and both solar and lunar eclipses, alternate computation methods and the ability to generate almanacs.

About the Author

Continue reading for more information about celestial navigation.

Celestial Navigation Basics


Introduction

Celestial navigation has been with us since the beginning of time. Various civilizations have used it, some like the Polynesians, with remarkable and extremely daring skills.

Definitions of terms

The first thing to learn are the terms. In this page I shall follow the sailor's convention though I will mention in passing, when and if I think about it, the astronomer's and land surveyor's terms.

Celestial navigation is based on 2 spheres. One is the earth, and I guess everybody knows that the coordinates to be used are the latitude and longitude. Celestial objects have a similar set of coordinates however, two such sets are in use at the same time: One set is called longitude and latitude, these refer to the position relative to the ecliptic plane which is the plane of the Earth's orbit around the Sun and which is tilted about 23 ° relative to the equatorial plane, in this system, the origin of all coordinates is the centre of the Sun.

The other system is essentially an earth centered view of the universe and uses a set of coordinates based on the equatorial plane. The coordinates in this system are the declination and the Greenwich hour angle.

Note also that in my formulas, I've assumed for angle of arc unit the degree, hence why the number 60 appears sometimes to convert degrees into minutes (or nautical miles since 1 nautical mile = 1 minute of arc on the earth).

Navigation in principle

Of course, if you already know where you are, there is no point in trying to determine it from the formulas above . But when you actually navigate, the odds are you don't know quite where you are, so how do we use the above formulas?

We draw what is called a position line or Sumner line. Although the modern position line is not quite a real Sumner line but it is close enough.

Like all good inventions, Sumner lines were discovered by chance by a fellow called , you guessed right, "Sumner", Thomas H. Sumner to be precise (maybe related to the late professor Julius Sumner-Miller). Sumner was a ship captain on his way from Charleston (South Carolina) to Greenock (Scotland). And he was worried because he had been sailing for several days in bad weather, the wind was blowing from the South East making Ireland a lee shore, and he had not been able to see the sun or any stars, the coast was getting near, and he did not know exactly where he was. Suddenly there was a break in the clouds, so he grabbed his sextant and snatched a quick sun sight, before the clouds covered the sky again.

Now he was wondering what to do with this information so he played a "what if" game. He did not use the bearing formula above, because nobody had worked it out in quite that form yet, but he knew the altitude formula and he said "what if my latitude is... " and calculated the corresponding longitude and he plotted it on the chart, then he tried it again with another latitude, got another point on the chart. After doing that three or four times he suddenly realised that all the points he was marking on the chart seemed to fall on a straight line. Without thinking about it any more, he saw that the line needed pushing north by a few odd miles to lead straight over Small's light, so he turned north for those few miles, then turned to starboard until he was sailing parallel to that very first "Sumner line". His crew were a bit perplexed at that, wondering if the captain had gone mad, but when suddenly they arrived right at the very light, they thought he was a flaming genius. And so did the rest of the sailing community.

So why did the points fall on a straight line? They did not really but Sumner did not realise it at the time. The points Sumner was plotting were the points on earth from which any one would have seen, at the same moment as he did, the sun with exactly the same altitude. All those points are on a circle centered at the point on earth directly below the sun. Because this circle is usually huge, a small part of it appears straight on a Mercator projection chart.

So this is how we proceed in practice:

  1. We assume we know where we are , we call this DR (for Dead Reckoning).

  2. We calculate, based on the latitude and longitude of the DR, what the bearing and the altitude of the celestial object would be at the time of observation.

  3. We draw the bearing line passing through DR.

  4. We compare the actual measured altitude, with what it would have been had we been at DR, the difference, in minutes of arc, is equal to the number of nautical miles that we have to move along the bearing line to find our position line. ie if the angle measured is greater than the calculated one by say 13' of arc, then we move towards the celestial object by 13 nautical miles, and if say the measured angle was less by 7' of arc than the calculated one, we would move away from the celestial object by 7 nautical miles.

  5. Finally we draw a line at right angle to the bearing line, passing by the point we have just found. This line is our position line and all we can tell is we are somewhere on this line.

    Note the difference between our position line and Sumner's original one: our line is the tangent to the circle at the point nearest to DR, Sumner's was the circle. Sumner's line is in theory more accurate, but the circle is usually so large that the loss of accuracy is insignificant. Note also that in the tropics the circles can be extremely small, I remember reading about a P&O captain who used to obtain all his fixes without any calculation, he would take several observations when the sun was nearly dead overhead (say over a 15 minute period) for each time observation, he would plot the coordinates (GHA,DEC) of the Sun on his map then draw a circle of radius equal to (90 degrees - measured altitude). Since over the 15 minute period he would probably have collected 4 or 5 observations, he would draw 4 or 5 circles which would all intersect at one point. Simple but effective especially as in the tropics, position lines usually end up running all almost North-South giving good longitude information but lousy intercepts and large errors in latitude. The noon sight is damn important then.

  6. If you wait a few hours, the sun will change position and you will be able to repeat the operation and determine a 2nd position line which will intersect the first. Provided you haven't moved in the interval, you are at the intersection.

  7. If you have moved (and the odds are you would because it can be pretty boring sitting around doing nothing on a boat that's just bobbing up and down in the middle of the ocean), then all you need do is translate the original position line in the same direction, and the same distance as you have travelled. Your position will be at the intercept of the new line and the translated one. Sailors call this the SUN RUN SUN method.

The above information was edited from Eric De Man siranah.de