Debian Codegraph @

xmldoc/filters/resample.xml

raw
1 <para>
2 The resampling filter can be used to change the sample rate of a track. It is intended to be used with track points that have been sampled at a constant rate. It can be used to change the sample rate by a rational factor. It can also be used to smooth a track with or without changing the sample rate. The filter works across the antimeridian.
3 </para>
4
5 <example xml:id="example_resample_filter_interpolate">
6 <title>Interpolation with the resampling filter</title>
7 <para>
8 This examples doubles the sample rate. The data is filtered after interpolation regardless of the order of the options.
9 </para>
10 <para><userinput>gpsbabel -t -i unicsv -f data.csv -x resample,interpolate=2,average=2 -o unicsv,utc=0 -F fast.csv</userinput></para>
11 </example>
12
13 <example xml:id="example_resample_filter_decimate">
14 <title>Decimation with the resampling filter</title>
15 <para>
16 This examples reduces the sample rate by a factor of 4. The data is filtered before decimation regardless of the order of the options.
17 </para>
18 <para><userinput>gpsbabel -t -i unicsv -f data.csv -x resample,average=4,decimate=2 -o unicsv,utc=0 -F slow.csv</userinput></para>
19 </example>
20
21 <example xml:id="example_resample_filter_average">
22 <title>Averaging with the resampling filter</title>
23 <para>
24 This examples averages the adjacent points. A running average filter of length two samples is applied in the forward and reverse directions.
25 </para>
26 <para><userinput>gpsbabel -t -i unicsv -f data.csv -x resample,average=2 -o unicsv,utc=0 -F smooth.csv</userinput></para>
27 </example>