* /branches/gpst-breakfix/tests/log/tests.log
[gpstools.git] / vg
blobfe51051d4ae8b4c0263c06cd8081c38657dca588
1 #!/bin/bash
3 # $Id$
5 if [ "$1" = "-t" ]; then
6 shift
7 gpst -o csv -rt -e -d -t "$@" | rmspcall | uniq >/tmp/vg-t.tmp
8 cat <<END >/tmp/vg-t-cmd.tmp
9 set mouse
10 # load "/tmp/label.gnuplot"
11 set zdata time
12 # set timefmt "%Y-%m-%dT%H:%M:%SZ"
13 set timefmt "%s"
14 splot "/tmp/vg-t.tmp" using 2:3:1 w l palette
15 pause -1 "Trykk Enter..."
16 END
17 gnuplot -persist /tmp/vg-t-cmd.tmp
18 else
19 gpst -o clean -ret -d -t "$@" | rmspcall | uniq >/tmp/vg.tmp
20 cat <<END >/tmp/vg-cmd.tmp
21 set mouse
22 # load "/tmp/label.gnuplot"
23 splot "/tmp/vg.tmp" w l palette
24 pause -1 "Trykk Enter..."
25 END
26 gnuplot -persist /tmp/vg-cmd.tmp