Debian Codegraph @

xmldoc/filters/options/track-move.xml

raw
1 <para>
2 This option changes the time of all trackpoints. This might be useful if
3 your track must be moved by one or more hours because of an incorrect
4 time zone.
5 It can also be useful to correct tracks for week number roll over problems.
6 </para>
7 <para>
8 The value of this option is a series of integer and unit pairs. Each integer may include a
9 leading '+' or '-' sign. Positive integers shift the tracks later, while negative integers shift
10 the tracks earlier. If no sign is provided the integer is assumed to be nonnegative.
11 Possible units are w for weeks, d for days, h for hours, m for minutes, s for seconds and z for milliseconds.
12 </para>
13 <example xml:id="ex_track_move">
14 <title>Time-shifting a track with the track filter</title>
15 <para>
16 The following command line will shift all tracks to be one hour later.
17 </para>
18 <para><userinput>gpsbabel -t -i gpx -f in.gpx -x track,move=+1h -o gpx -F out.gpx</userinput></para>
19 </example>
20 <example xml:id="ex_track_move_wnro">
21 <title>Time-shifting a track with the track filter to correct WNRO</title>
22 <para>
23 The following command line will shift all tracks to be 1024 weeks later. Because the GPS Week Number
24 is transmitted modulo 1024 there is the possibility that the recovered timestamp will be off by
25 a multiple of 1024 weeks.
26 </para>
27 <para><userinput>gpsbabel -t -i gpx -f in.gpx -x track,move=+1024w -o gpx -F out.gpx</userinput></para>
28 </example>
29 <example xml:id="ex_track_move_combo">
30 <title>Time-shifting a track with the track filter with combined units</title>
31 <para>
32 The following command lines will each shift all tracks to be 1 hour and 1 minute earlier, i.e. 61 minutes earlier.
33 </para>
34 <para><userinput>gpsbabel -t -i gpx -f in.gpx -x track,move=-1h-1m -o gpx -F out.gpx</userinput></para>
35 <para><userinput>gpsbabel -t -i gpx -f in.gpx -x track,move=-61m -o gpx -F out.gpx</userinput></para>
36 </example>