/usr/bin/gpscsv: can't load Python gps libraries -- check PYTHONPATH.
No module named 'gps'
Options (14)
| Option | Description | Source |
|---|
-?, -h, --help | Show help information and exit. | man |
-c, --class MCLASS | Select the JSON class messages of type MCLASS. | man |
--cvt-isotime | Convert fields named "time" from ISO time to UNIX time. | man |
-D, --debug LVL | Set debug level to LVL. | man |
--device DEVICE | The DEVICE on the gpsd to connect to. | man |
-f, -fields FIELDS | The FIELDS from the JSON message to dump to the output. | man |
--file FILE | Read JSON from FILE instead of from gpsd. | man |
--header HEADER | Set header style to HEADER. | man |
--host HOST | Connect to the gpsd on HOST. | man |
-n, --count COUNT | Exit after outputting COUNT records. | man |
--port PORT | Use PORT to connect to gpsd. | man |
--separator SEPARATOR | Use SEPARATOR as the field separator. | man |
-V, --version | Show gpscsv version, and exit. | man |
-x, --seconds SECONDS | Exit after SECONDS number of seconds have passed. | man |
Exit status (2) from the manual page
Examples (15) from the manual page, untested
gpscsv -c TPV -n 3
Grab three cycles of TPV data:gpscsv -c SAT -n 1
Grab one set of satellite data:gpscsv -n 100 --cvt-isotime > tpv.dat
Grab 100 samples of time,lat,lon,altHAE:gpscsv -n 100 --cvt-isotime -f time,epx,epy,epv,eph,sep > ep.dat
Grab 100 samples of time,epx,epy,epv,eph,sepgpscsv -n 100 --cvt-isotime -c SKY > sky.dat
Grab 100 samples of time,xdop,ydop,vdop,tdop,hdop,gdop,pdopgpscsv -n 100 --cvt-isotime -c SKY -f time,nSat,uSat > sat.dat
Grab 100 samples of time,nSat,uSatgnuplot
Start gnuplot in interactive mode:this are csv files
Some gnuplot housekeeping:gnuplot> plot 'tpv.dat' using 1:2
Now to plot time vs latitude, using tpv.dat from above:gnuplot> plot 'tpv.dat' using 1:3
Then to plot longitude and altHAE, in separate plots:gnuplot> set y2tics
Put both latitude and longitude on one plot:gnuplot> plot 'ep.dat' using 1:2, '' using 1:3, \
Plot epx, epy, epv, eph, and sep in one plot, using ep.dat from above:gnuplot> plot 'sky.dat' using 1:2, '' using 1:3, '' using 1:4, \
Plot all the DOPs on one plot, from sky.dat above:gnuplot> plot 'sat.dat' using 1:2, '' using 1:3
Plot nSat and uSat together:x is no longer time
Lat/lon scatter plot:
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.