kc8 / piawaredump1090wrapper

PiAware and DUMP1090 API and Wrapper for Python
MIT License
5 stars 1 forks source link

Distance #1

Open dabenpb opened 4 years ago

dabenpb commented 4 years ago

Came across this while working through some issues on my projects -- re you distance calculation, if you are trying to specify line of sight distance then you should use a different method. Best is to go into ECEF and get the norm (ie sqrt (x^2 +y^2 + z^2)). This is the true distance along the line of sight. The great circle, haversine, and inverse distances are all on a sphere or ellipsoid.

kc8 commented 4 years ago

Hi Dabenpb,

Interesting thought, I am going to read about ECEF more. When I was thinking about getting the distance I wanted to account for the curve of the Earth but maybe that is not the right approach.

dabenpb commented 4 years ago

If you calculate in ECEF you will take the curvature into account.

On Sat, Aug 8, 2020 at 6:10 PM Kyle notifications@github.com wrote:

Hi Dabenpb,

Interesting thought, I am going to read about ECEF more. When I was thinking about getting the distance I wanted to account for the curve of the Earth but maybe that is not the right approach.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kc8/piawaredump1090wrapper/issues/1#issuecomment-670983510, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR4BQYYRQ7NDLABODFPCBLR7XLPPANCNFSM4NIV7DSA .