X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fmoon.pl;h=ef1ba4573a9516695c0dc89ce5979f5100492ae0;hb=35432a9f25350b9a5db513efbe248b61176b0684;hp=b1e4feb4fc0d64780845c441a0e2a1a66fc0e7c1;hpb=3784e03cd598b7f540fb849a533b7589867a066a;p=spider.git diff --git a/cmd/show/moon.pl b/cmd/show/moon.pl index b1e4feb4..ef1ba457 100644 --- a/cmd/show/moon.pl +++ b/cmd/show/moon.pl @@ -1,9 +1,9 @@ #!/usr/bin/perl # -# show sunrise and sunset times for each callsign or prefix entered +# show moonrise and moonset times for each callsign or prefix entered # # 1999/11/9 Steve Franke K9AN -# +# 2000/10/27 fixed bug involving degree to radian conversion. my ($self, $line) = @_; my @list = split /\s+/, $line; @@ -21,7 +21,7 @@ if (@list) { foreach $l (@list) { my $user = DXUser->get_current(uc $l); if ($user && $user->lat && $user->long) { - push @in, [$user->qth, $user->lat * $d2r, $user->long * -$d2r, uc $l ]; + push @in, [$user->qth, $user->lat, -$user->long, uc $l ]; } else { # prefixes ---> my @ans = Prefix::extract($l);