Mercator Sailing: Course and Distance
08-26-2018, 12:30 AM
Post: #6
 Gene222 Member Posts: 125 Joined: Feb 2015
RE: Mercator Sailing: Course and Distance
"a bit of calculus"??? Your math skills are far better than mine. It looks like you are calculating the distance directly from the ellipsoid and not from the map projection. I did remember of another way to solve the course and distance on an East-West line for pt 1 and pt 2. This was on a old forum. This person said to create a third point mid-longitude between the two points, but with a latitude well above the two points. Then calculate the course and distance from pt 1 to pt 3 and from pt 3 to pt 2. He then added the vectors to give him the course and distance from pt 1 to pt 2. I need to think about this East-West issue some more.

Regarding the WGS84 ellipsoid, it certainly makes sense to use a more modern ellipsoid that is used by GPS, but this is a Mercator Sailing program. The WGS84 ellipsoid seem more like Rhumb-line sailing. Regarding the accuracy of the author's equation, I did find a more accurate meridian part equation from an on-line Mercator calculator's site. I don't know if it is Clark's ellipsoid of 1866, but it closely resembles the author's equation.

Calculator Afloat equation
Meridinal Part 1 = 7915.7045*LOG(TAN(45+Lat1/2))-23.2689*SIN(Lat1);

Online Mercator equation
Meridinal Part 1 = 7915.704468*LOG(TAN(45+Lat1/2))-23.268932*SIN(Lat1)-0.052500*(sin(Lat1))^3-0.000213*(sin(Lat1))^5;

I think I need to keep this program simple and stick with the Mercator sailing equations. I can add a more user friendly input and provided a output that give some intermediate results in addition to the course and distance. I can also adjust the program to handle equatorial crossings (m=M1+M2, but adjusted for direction) and 180 deg meridian crossings. I not sure what I will do about East-West courses. But first, I will take a break from programming and maybe read more on Rhumb-line sailing.
 « Next Oldest | Next Newest »

 Messages In This Thread Mercator Sailing: Course and Distance - Eddie W. Shore - 08-10-2018, 03:08 AM RE: Mercator Sailing: Course and Distance - PedroLeiva - 08-10-2018, 11:23 AM RE: Mercator Sailing: Course and Distance - Dieter - 08-12-2018, 05:13 PM RE: Mercator Sailing: Course and Distance - Eddie W. Shore - 09-22-2018, 11:37 PM RE: Mercator Sailing: Course and Distance - Gene222 - 08-24-2018, 07:21 PM RE: Mercator Sailing: Course and Distance - Dieter - 08-25-2018, 06:08 AM RE: Mercator Sailing: Course and Distance - Eddie W. Shore - 09-22-2018, 11:39 PM RE: Mercator Sailing: Course and Distance - Gene222 - 08-26-2018 12:30 AM RE: Mercator Sailing: Course and Distance - Dieter - 08-26-2018, 07:18 AM RE: Mercator Sailing: Course and Distance - Albert Chan - 09-10-2022, 03:17 PM RE: Mercator Sailing: Course and Distance - Gene222 - 08-28-2018, 12:46 AM RE: Mercator Sailing: Course and Distance - Dieter - 08-28-2018, 08:53 AM RE: Mercator Sailing: Course and Distance - Dieter - 08-28-2018, 04:49 PM RE: Mercator Sailing: Course and Distance - Gene222 - 08-29-2018, 09:02 PM RE: Mercator Sailing: Course and Distance - Dieter - 08-30-2018, 05:49 AM RE: Mercator Sailing: Course and Distance - Gene222 - 08-30-2018, 11:59 PM RE: Mercator Sailing: Course and Distance - Gene222 - 08-31-2018, 02:15 AM RE: Mercator Sailing: Course and Distance - Dieter - 08-31-2018, 05:46 AM RE: Mercator Sailing: Course and Distance - Dieter - 09-01-2018, 05:51 AM RE: Mercator Sailing: Course and Distance - VadimV - 12-21-2022, 08:31 PM RE: Mercator Sailing: Course and Distance - Gene222 - 09-01-2018, 02:52 AM RE: Mercator Sailing: Course and Distance - Gene222 - 09-02-2018, 04:03 PM RE: Mercator Sailing: Course and Distance - Dieter - 09-02-2018, 06:27 PM RE: Mercator Sailing: Course and Distance - Gene222 - 09-03-2018, 10:10 PM RE: Mercator Sailing: Course and Distance - Dieter - 09-04-2018, 07:19 PM RE: Mercator Sailing: Course and Distance - Gene222 - 09-05-2018, 05:46 PM

User(s) browsing this thread: 1 Guest(s)