use DXDupe;
use strict;
+
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
use vars qw($date $sfi $k $a $r $forecast @allowed @denied $fp $node $from
$dirprefix $param
- $duplth $dupage);
+ $duplth $dupage $filterdef);
$fp = 0; # the DXLog fcb
$date = 0; # the unix time of the WWV (notional)
$dirprefix = "$main::data/wwv";
$param = "$dirprefix/param";
+$filterdef = bless ([
+ # tag, sort, field, priv, special parser
+ ['by', 'c', 7],
+ ['origin', 'c', 8],
+ ['channel', 'c', 9],
+ ['by_dxcc', 'nc', 10],
+ ['by_itu', 'ni', 11],
+ ['by_zone', 'nz', 12],
+ ['origin_dxcc', 'nc', 13],
+ ['origin_itu', 'ni', 14],
+ ['origin_zone', 'nz', 15],
+ ], 'Filter::Cmd');
+
sub init
{
$fp = DXLog::new('wwv', 'dat', 'm');
{
my $from = shift;
my $to = shift;
- my @date = $fp->unixtoj(shift);
+ my $date = $fp->unixtoj(shift);
my $pattern = shift;
my $search;
my @out;
$fp->close; # close any open files
- my $fh = $fp->open(@date);
+ my $fh = $fp->open($date);
for ($count = 0; $count < $to; ) {
my @in = ();
if ($fh) {
#
sub readfile
{
- my @date = $fp->unixtoj(shift);
- my $fh = $fp->open(@date);
+ my $date = $fp->unixtoj(shift);
+ my $fh = $fp->open($date);
my @spots = ();
my @in;