Lon-Lat Distance Calculator Good Accuracy Close

Lon-Lat Distance Calculator Good Accuracy Close

Postby TokKiwi » Sat Jun 06, 2009 3:58 am

This is better than the NOAA one, for the medium distance for radius calculation, it agrees with teh NOAA one - around say 650km to 2500kms but less than 400kms it gives a more accurate distance - the NOAA one apologises for short distance innacuracies.

Important Note: The distance calculator on this page is provided for informational purposes only. The calculations are approximate in nature


http://www.movable-type.co.uk/scripts/latlong.html

Distance

This script calculates great-circle distances between the two points – that is, the shortest distance over the earth’s surface – using the ‘Haversine’ formula.

It assumes a spherical earth, ignoring ellipsoidal effects – which is accurate enough* for most purposes… – giving an ‘as-the-crow-flies’ distance between the two points (ignoring any hills!).


The Haversine formula ‘remains particularly well-conditioned for numerical computation even at small distances’ – unlike calculations based on the spherical law of cosines. (It was published by R W Sinnott in Sky and Telescope, 1984, though has been known about for much longer; the ‘half-versed-sine’ is (1-cosθ)/2, or sin²(θ/2) – don’t ask, I’m not a mathematician).

In fact, when Sinnott devised the Haversine formula, computational precision was limited. Nowadays, JavaScript (and most modern computers) use IEEE 754 64-bit floating-point numbers, which provide 15 significant figures of precision. With this precision, the simple spherical law of cosines formula gives well-conditioned results down to distances as small as around 1 metre. In view of this it is probably worth, in most situations, using either the simpler law of cosines or the more accurate ellipsoidal Vincenty formula in preference to Haversine! (See notes below on the limitations in accuracy of the spherical model).


Since I tend to grab an area of the global or regional country maps I want, and then get the Boundary coords in MapCreator2, I then turn them into decimal and sort out the centre coords and then need to calc the Radius after that, which is where I found some serious 100% inaccuracies from the NOAA calculator especially in close. 29km NOAA > 74.18km Real.

Graeme
Sport is active, families are fun, hobbies are addictive!
Image
TokKiwi
 
Posts: 24
Joined: Thu Jun 19, 2008 9:27 am
Location: Tokoroa new Zealand

Re: Lon-Lat Distance Calculator Good Accuracy Close

Postby ZaventemLR » Fri Jun 19, 2009 8:38 pm

Hello Graeme,


did you try my little program to find the 4 borders to put in MapCreator ?

http://users.edpnet.be/Danielv37/Detect ... Finder.zip

It use the Vincenty formul, like LR and the LRMapCreator.. soon available.

Best regards

Daniel
ZaventemLR
Site Admin
 
Posts: 86
Joined: Sat Mar 08, 2008 10:13 am
Location: Belgium - Brussels

Re: Lon-Lat Distance Calculator Good Accuracy Close

Postby TokKiwi » Mon Jun 29, 2009 9:01 pm

Thank you for sharing - I will try sometime. I like to select a region I want for my map, then determine the centre accurately from the borders given in MapCreator and use these to generate the radius in another program as above.

I will look forward to the MRMapCreator!!
Sport is active, families are fun, hobbies are addictive!
Image
TokKiwi
 
Posts: 24
Joined: Thu Jun 19, 2008 9:27 am
Location: Tokoroa new Zealand

Re: Lon-Lat Distance Calculator Good Accuracy Close

Postby ZaventemLR » Fri Jul 24, 2009 9:48 am

Hello,

The beta version is now available here

http://www.lightningradar.net/Software/index.htm

Enjoy.

Daniel
ZaventemLR
Site Admin
 
Posts: 86
Joined: Sat Mar 08, 2008 10:13 am
Location: Belgium - Brussels

Re: Lon-Lat Distance Calculator Good Accuracy Close

Postby TokKiwi » Mon Jul 27, 2009 12:54 am

Thank you Daniel - something to do tonight! I am trying to reconnect via email/phone to the three interested (purchased preamps) people in Australia and Tasmania, to see how their progress is and to encourage them. :)
Sport is active, families are fun, hobbies are addictive!
Image
TokKiwi
 
Posts: 24
Joined: Thu Jun 19, 2008 9:27 am
Location: Tokoroa new Zealand

Re: Lon-Lat Distance Calculator Good Accuracy Close

Postby Zeeon » Mon Mar 19, 2012 4:41 pm

Thanks for sharing the details information about this distance calculator. google maps distance calculator is also a good distance calculator. I am very pleased to use it. Also you can use it. It is able to give you accurate calculation.
Zeeon
 
Posts: 1
Joined: Mon Mar 12, 2012 4:03 pm


Return to LR - Software discussion

Who is online

Users browsing this forum: No registered users and 0 guests