Tag Archives: GPS

Calculating distance from Lat & Lon coordinates using Python & Pandas

Given a GPS log file structured as follows (column separators omitted for clarity): Speed Latitud Longitud Time 2019-01-07 06:15:27 0 59.649582 17.721365 2019-01-07 06:16:28 0 59.649583 17.721372 2019-01-07 06:17:28 0 59.649583 17.721370 2019-01-07 06:18:28 0 59.649583 17.721372 2019-01-07 06:19:29 0 … Continue reading

Posted in Data Analytics, Math, Nautical Information Systems, Pandas, Python | Tagged , , , , | Leave a comment

Python & Pandas to map gps coordinates to known locations

Assume you have a gps log file, with time and position (Lat,Lon in columns 9,10) info, like: 2018.12.12 00:41:20;0;0;0;0;0;1;0;25.8;59.348978;17.969643;0;0; 2018.12.12 01:41:21;0;0;0;0;0;1;0;25.7;59.348962;17.969627;0;0; 2018.12.12 02:41:21;0;0;0;0;0;1;0;25.7;59.349;17.969688;0;0; 2018.12.12 03:41:21;0;0;0;0;0;1;0;25.7;59.349;17.96966;0;0; 2018.12.12 04:41:22;0;0;0;0;0;1;0;25.6;59.349007;17.969618;0;0; 2018.12.12 04:48:50;0;0;0;0;1;1;1;25.2;59.349007;17.969635;0;0; 2018.12.12 04:49:51;0;0.001;0;0;1;1;1;28.3;59.349;17.969642;0;0; Assume further that you’d like to map each of … Continue reading

Posted in Maritime Technology, Nautical Information Systems, Numpy, Pandas, Python | Tagged , , , | Leave a comment

Great Circle Navigation

The shortest distance between two points is a straight line, right…? Nope, not on the surface of a sphere, like our earth. On a sphere, the shortest distance between two points is a Great Circle.  Let’s say you are a … Continue reading

Posted in development, Nautical Information Systems, Python | Tagged , , , , , , , | Leave a comment