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.
Interpolation with the resampling filter
This examples doubles the sample rate. The data is filtered after interpolation regardless of the order of the options.
gpsbabel -t -i unicsv -f data.csv -x resample,interpolate=2,average=2 -o unicsv,utc=0 -F fast.csv
Decimation with the resampling filter
This examples reduces the sample rate by a factor of 4. The data is filtered before decimation regardless of the order of the options.
gpsbabel -t -i unicsv -f data.csv -x resample,average=4,decimate=2 -o unicsv,utc=0 -F slow.csv
Averaging with the resampling filter
This examples averages the adjacent points. A running average filter of length two samples is applied in the forward and reverse directions.
gpsbabel -t -i unicsv -f data.csv -x resample,average=2 -o unicsv,utc=0 -F smooth.csv