This filter is used to "fix" unreliable GPS data by discarding points
that are believed to be unreliable. You may specify an
HDOP and/or VDOP above a specified limit, a minimum number of satellites
that must have been in view for a fix to be considered, or both.
HDOP and VDOP are measures of the best possible horizontal or vertical precision for a given configuration of GPS satellites. Higher numbers indicate a higher dilution of precision and therefore mathematically less useful.
Using the discard filter for HDOP and VDOP.
gpsbabel -i gpx -f in.gpx -x discard,hdop=10,vdop=20,hdopandvdop -o gpx -F out.gpx
You may specify a minimum number of satellites.
Using the discard filter to require at least three satellites.
gpsbabel -i gpx -f in.gpx -x discard,sat=3 -o gpx -F out.gpx
Contributed by Tobias Minich and Serge Droz.