projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing input filter for WWV
[spider.git]
/
perl
/
DXBearing.pm
diff --git
a/perl/DXBearing.pm
b/perl/DXBearing.pm
index acf90fa3323dfee9666dbf1a47f237d67541e99c..e7736f8a138d64a367865bce605631389f96f861 100644
(file)
--- a/
perl/DXBearing.pm
+++ b/
perl/DXBearing.pm
@@
-21,6
+21,12
@@
use vars qw($pi);
$pi = 3.14159265358979;
$pi = 3.14159265358979;
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
# convert a qra locator into lat/long in DEGREES
sub qratoll
{
# convert a qra locator into lat/long in DEGREES
sub qratoll
{
@@
-104,7
+110,7
@@
sub bdist
# turn a lat long string into floating point lat and long
sub stoll
{
# turn a lat long string into floating point lat and long
sub stoll
{
- my ($latd, $latm, $latl, $longd, $longm, $longl) = $_[0] =~ /(\d{1,2})\s+(\d{1,2})\s*([NnSs])\s+(\d{1,2})\s+(\d{1,2})\s*([EeWw])/;
+ my ($latd, $latm, $latl, $longd, $longm, $longl) = $_[0] =~ /(\d{1,2})\s+(\d{1,2})\s*([NnSs])\s+(
1?
\d{1,2})\s+(\d{1,2})\s*([EeWw])/;
$longd += ($longm/60);
$longd = 0-$longd if (uc $longl) eq 'W';
$longd += ($longm/60);
$longd = 0-$longd if (uc $longl) eq 'W';