README.md
changeset 11 35951602f83e
parent 10 89108adbc468
child 12 1d6e37b3ebf2
equal deleted inserted replaced
10:89108adbc468 11:35951602f83e
     1 # gpx_reduce_light
     1 # gpx_reduce_light
     2 
     2 
     3 * gpx_reduce.py, a version of gpx_reduce with no dependencies (only the standard python libraries)  
     3 * gpx_reduce.py is a version of the [original gpx_reduce][1] with no dependencies.
     4 Only the plot option has been removed.
       
     5 See [original version](https://github.com/Alezy80/gpx_reduce) for more info.
       
     6 
     4 
     7 >Usage example:
     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 
     9 >>```
     9     1. easy installation (nothing needed apart from python)
    10 $ gpx_reduce.py -d 2 -t 30 your_track.gpx
    10     2. the program is considerably faster than the original.  
    11 ```
    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.
    12 
    13 
    13 * gpx_plot.py, a separate program to plot one or more tracks with "gnuplot".  
    14     The one disadvantage of removing all depecencies is that the plot option had to be removed.  
    14 Gnuplot has to be installed and the path to the binary has to be changed in the code
    15     Usage example:
    15 to reflect your installation:
       
    16 
    16 
    17 >>```
    17         > gpx_reduce.py -d 2 -t 30 your_track.gpx
    18 gnuPlotCmd = 'path/to/gnuplot'
       
    19 ```
       
    20 
    18 
    21 >Usage example that compares a reduced track with the original:
    19     I made a separate python script with one dependency for plotting tracks:
    22 
    20 
    23 >>```
    21 * gpx_plot.py, a script to plot one or more tracks with "gnuplot".
    24 gpx_plot.py your_track.gpx your_track_reduced.gpx
    22 
    25 ```
    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'
       
    27 
       
    28     Usage example that compares a reduced track with the original:
       
    29 
       
    30         > gpx_plot.py your_track.gpx your_track_reduced.gpx
       
    31 
       
    32 [1]: https://github.com/Alezy80/gpx_reduce/