summaryrefslogtreecommitdiff
path: root/contrib/skyview.php
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2007-10-22 16:29:19 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2007-10-22 16:29:19 +0000
commit5f50eab0eba7e0fba31807cba2910429ad94e658 (patch)
tree98bc3afedf26181eebdc77a185389f5b61bbcc12 /contrib/skyview.php
parenta1e948040c02ddc4817e40c28da9e989e2eb5b64 (diff)
downloadgpsd-5f50eab0eba7e0fba31807cba2910429ad94e658.tar.gz
oops. was extracting azimuth and elevation in the wrong order
Diffstat (limited to 'contrib/skyview.php')
-rwxr-xr-xcontrib/skyview.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/skyview.php b/contrib/skyview.php
index dedf61d9..61fefd70 100755
--- a/contrib/skyview.php
+++ b/contrib/skyview.php
@@ -42,7 +42,7 @@ foreach ($lines as $line_num => $line) {
$n = $m[1];
$s = explode(':', $line);
for($i = 1; $i <= $n; $i++){
- list($sv, $az, $el, $snr, $u) = explode(' ', $s[$i]);
+ list($sv, $el, $az, $snr, $u) = explode(' ', $s[$i]);
if ($cellmode){
$az = $cellsize * (int)($az/$cellsize);
$el = $cellsize * (int)($el/$cellsize);
@@ -60,7 +60,7 @@ foreach ($lines as $line_num => $line) {
}
foreach($sky as $az => $x){
foreach ($sky[$az] as $el => $y){
- $e = array(-1, $az, $el, $sky[$az][$el]['avg'], -1);
+ $e = array(-1, $el, $az, $sky[$az][$el]['avg'], -1);
if ($cellmode)
cellplot($im, $sz, $C, $cellsize, $e);
else