BoatBanter.com

BoatBanter.com (https://www.boatbanter.com/)
-   Electronics (https://www.boatbanter.com/electronics/)
-   -   Calculating distance from Lat/Long (https://www.boatbanter.com/electronics/10874-calculating-distance-lat-long.html)

Brian Whatcott December 5th 03 04:04 AM

Calculating distance from Lat/Long
 
Not too surprising...I meant to mention that the inverse cos is
intended to provided an angle in *radians*
1 radian = 1 degree X 180/pi or about 57 degrees.

Brian W

On Fri, 05 Dec 2003 02:51:48 GMT, (Larry W4CSC) wrote:

Fifty seven lurkers just headed for the Tylenols with their heads
spinning, feeling nauseated and dizzy....(c;

I love my Nautical Almanac.....
I love my Nautical Almanac.....
I love my Nautical Almanac.....
I love my Nautical Almanac.....
and GPS...



On Fri, 05 Dec 2003 00:27:38 GMT, Brian Whatcott
wrote:


First, an explanatory note:
inverse cos is also known as arc.cos or cos^-1

The great circle distance is given by
Earth radius * arccos [cos Lat1* cos Lat2 * cos (Long1 - Long2)
+ sin Lat1 * sin Lat2]
The Earth (equatorial) radius is
6378 km, or 3963 statute miles or 3442 NM.

Does this help? (There are other formulae for the same result...)

Brian Whatcott Altus OK


Larry W4CSC

NNNN



Larry W4CSC December 5th 03 04:12 AM

Calculating distance from Lat/Long
 
On Fri, 05 Dec 2003 04:04:13 GMT, Brian Whatcott
wrote:

Not too surprising...I meant to mention that the inverse cos is
intended to provided an angle in *radians*
1 radian = 1 degree X 180/pi or about 57 degrees.

Brian W

My head is still buzzin', but that might be the Boddington's Ale, not
spherical trig....(c;


Larry W4CSC

NNNN


Jon Gauthier December 5th 03 03:11 PM

OT: Homeland Defense attacking Higher Math
 
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
html
head
meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"
title/title
/head
body text="#000000" bgcolor="#ffffff"
font face="Courier New, Courier, monospace"Off topic, but funny as
hell:br
br
==============================br
At New York's Kennedy airport today, an
individual laterbr
discovered to be a public school teacher was arrested
tryingbr
to board a flight while in possession of a ruler, a protractor,br
a setsquare, a slide rule, and a calculator. br
br
At a morning press conference, Attorney
general John Ashcroftbr
said he believes the man is a member of the
notorious al-gebrabr
movement. He is being charged by the FBI with
carrying weaponsbr
of math instruction. "Al-gebra is a fearsome cult,",
Ashcroftbr
said. "They desire average solutions by means and extremes,
andbr
sometimes go off on tangents in a search of absolute value. Theybr
use secret code names like "x" and "y" and refer to themselves asbr
"unknowns", but we have determined they belong to a commonbr
denominator
of the axis of medieval with coordinates in everybr
country. "As the
Greek philanderer Isosceles used to say, therebr
are 3 sides to every
>triangle," Ashcroft declared. br
br
When asked to comment on the arrest,
President Bush said, "If Godbr
had wanted us to have better weapons of
math instruction, He wouldbr
have given us more fingers and toes. "I am
gratified that ourbr
government has given us a sine that it is intent on
protracting usbr
from these math-dogs who are willing to disintegrate us
with calculusbr
disregard. Murky statisticians love to inflict plane on
every spherebr
of influence," the President said, adding: "Under the
circumferences,br
we must differentiate their root, make our point, and
draw the line."br
President Bush warned, "These weapons of math
instruction have thebr
potential to decimal everything in their math on a
scalene neverbr
before seen unless we become exponents of a Higher Power
and begin tobr
factor-in random facts of vertex." br
br
Attorney General Ashcroft said, "As our
Great Leader would say, readbr
my ellipse. Here is one principle he is
uncertainty of though theybr
continue to multiply, their days are
numbered as the hypotenuse tightensbr
around their necks." br
br
br
-- br
Jon Gauthierbr
br
Given the likely reaction to an increase inbr
terror-alert level to "severe threat imminent,"br
wouldn't a more appropriate alert color be brown?br
-Brad Simanek on a class="moz-txt-link-abbreviated" href="http://www.ruminate.com"www.ruminate.com/a/font
/body
/html


H. Chris Spreckley December 11th 03 06:24 AM

Calculating distance from Lat/Long
 
Dear Lloyd,

I've picked this up rather late. If you still require the answer[s] then get
back to me including telling me whether you have a book of tables known as
"Norries Tables". If not I can give you an arithmetic method by calculator.
Basically you work out the D'Lat [difference in minutes of latitude] and
Dep(arture), then converting Dep into D'Long [differnce in minutes of
Longitude]. From which can be determined Dist(ance) and Co(arse) made good,
or of course the reverse having only course and distance find the rest.

Chris Spreckley



"Lloyd Sumpter" wrote in message
...
Hi,

I'm writing a program for Linux that displays position (from GPS) on a
scanned-in chart, and would like it to calculate distance from current
position to the cursor.

How do you calculate distance between two points using lat/long? If
they're due North/South, I can do it ( 1 minute of lat = 1 NM) but how do
you calculate distance from longitude? Perhaps some formula based on the
circumfrence of the Earth at the equator and the latitude?

Lloyd Sumpter




Robert Miles December 16th 03 12:00 AM

Calculating distance from Lat/Long
 
They have Boddingtons in W4 land???
Wow.. I wondered why you send all the Bud over here!!

Bob GM4CAQ

"Larry W4CSC" wrote in message
...
On Fri, 05 Dec 2003 04:04:13 GMT, Brian Whatcott
wrote:

Not too surprising...I meant to mention that the inverse cos is
intended to provided an angle in *radians*
1 radian = 1 degree X 180/pi or about 57 degrees.

Brian W

My head is still buzzin', but that might be the Boddington's Ale, not
spherical trig....(c;


Larry W4CSC

NNNN




Larry W4CSC December 16th 03 02:51 AM

Calculating distance from Lat/Long
 
On Tue, 16 Dec 2003 00:00:59 -0000, "Robert Miles"
wrote:

They have Boddingtons in W4 land???
Wow.. I wondered why you send all the Bud over here!!

Bob GM4CAQ

America is awash in English Ale....(c;

THANKS!!

Larry W4CSC

NNNN

Rob Overton December 30th 03 11:44 AM

Calculating distance from Lat/Long
 
"H. Chris Spreckley" wrote in message ...
Dear Lloyd,

I've picked this up rather late. If you still require the answer[s] then get
back to me including telling me whether you have a book of tables known as
"Norries Tables". If not I can give you an arithmetic method by calculator.
Basically you work out the D'Lat [difference in minutes of latitude] and
Dep(arture), then converting Dep into D'Long [differnce in minutes of
Longitude]. From which can be determined Dist(ance) and Co(arse) made good,
or of course the reverse having only course and distance find the rest.

Chris Spreckley



"Lloyd Sumpter" wrote in message
...
Hi,

I'm writing a program for Linux that displays position (from GPS) on a
scanned-in chart, and would like it to calculate distance from current
position to the cursor.

How do you calculate distance between two points using lat/long? If
they're due North/South, I can do it ( 1 minute of lat = 1 NM) but how do
you calculate distance from longitude? Perhaps some formula based on the
circumfrence of the Earth at the equator and the latitude?

Lloyd Sumpter


How come nobody has suggesed the simple midlatitude estimate? If all
you want is the distance from a point (lat0, lon0) on your chart and
the cursor, and you're only planning to use this over short distances
(say, less than 100 NM) AND lat0 is between 60°N and 60°S or so, a
good estimate of distance, which can even be done on a hand
calculator, is

D = K * SQRT((lat - lat0)^2 + cos(lat0)*(lon - lon0)^2)

where

D = desired distance
K = 60 (approx) = conversion factor from degrees of latitude to
nautical miles
(lat,lon) = cursor position (deg)
(lat0, lon0) = point on chart from which distance is desired (deg)

This easy estimate uses a tangent-plane approximation to a round-earth
model and relies on the fact that lines of longitude (meridians) are
approximately parallel in the mid latitudes. Under the indicated
conditions it's accurate to dozens of feet, and for short distances
(under a mile, say), to within a foot or two.


All times are GMT +1. The time now is 08:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2014 BoatBanter.com