TCXRecalculator
Python scripts to modify tcx files
Recalculate distance Python script to re-embed distance metrics into a TCX file using the GPS coordinates.
Set timings Python program to set the timestamp for each trackpoint. You can specify the total amound of seconds and starttime. The amound of time between two timestamps will be set equal.
Usage
Install de dependenties
# pip install -r requirements.txt
Recalculate distance
# python tcx_recalc_dist.py input.tcx output.tcx
Set timings
# python tcx_set_timings.py <input file> <output file> <starttime> <totalseconds>
Example:
# python tcx_set_timings.py input.tcx output.tcx "2019-08-22T15:00:05Z" 1910
Dependencies
-
XML parsing and generation
- lxml
-
Geographical calculations