8
|
1 |
# gpx_reduce_light
|
|
2 |
|
11
|
3 |
* gpx_reduce.py is a version of the [original gpx_reduce][1] with no dependencies.
|
|
4 |
|
|
5 |
The [original version][1] depends on scipy, lxml, numpy and pylab.
|
|
6 |
Because the program only does some basic linear algebra, all these dependencies can be easily removed.
|
|
7 |
This has two benefits:
|
8
|
8 |
|
11
|
9 |
1. easy installation (nothing needed apart from python)
|
|
10 |
2. the program is considerably faster than the original.
|
|
11 |
This is because the original uses a numpy array for each trackpoint which
|
|
12 |
incurs a large overhead for creating and for all subsequent little computations.
|
10
|
13 |
|
11
|
14 |
The one disadvantage of removing all depecencies is that the plot option had to be removed.
|
|
15 |
Usage example:
|
8
|
16 |
|
11
|
17 |
> gpx_reduce.py -d 2 -t 30 your_track.gpx
|
|
18 |
|
|
19 |
I made a separate python script with one dependency for plotting tracks:
|
|
20 |
|
|
21 |
* gpx_plot.py, a script to plot one or more tracks with "gnuplot".
|
8
|
22 |
|
11
|
23 |
Gnuplot has to be installed and the path to the binary has to be changed in the code
|
|
24 |
to reflect your installation:
|
|
25 |
|
|
26 |
gnuPlotCmd = 'path/to/gnuplot'
|
8
|
27 |
|
11
|
28 |
Usage example that compares a reduced track with the original:
|
10
|
29 |
|
11
|
30 |
> gpx_plot.py your_track.gpx your_track_reduced.gpx
|
|
31 |
|
|
32 |
[1]: https://github.com/Alezy80/gpx_reduce/ |