my $offset = 0;
my $help;
my $mode="padiwa";
+my $direction=1;
my $result = GetOptions (
"h|help" => \$help,
"o|offset=s" => \$offset,
"m|mode=s" => \$mode,
+ "d|direction=i" => \$direction,
);
if($help) {
}
else {
die "wrong number format for offset parameter: \"$offset\"" unless $offset =~ /^\d+$/;
- $offset = int($offset) * $sign;
+ $offset = $direction * int($offset) * $sign;
}
#print "called with offset: $offset\n";
sub usage {
print <<EOF;
-usage: write_thresholds.pl [--help] [offset=<offset in hex or decimal>] [--mode=<"padiwa"|"cbmrich">] <filename of threshold results>
+usage: write_thresholds.pl [--help] [offset=<offset in hex or decimal>] [--mode=<"padiwa"|"cbmrich"|"dirich2">] <filename of threshold results>
example:
filename:
has to be in the format of the output of the automatic threshold determination
-currently only mode "padiwa" is implemented.
+currently only mode "padiwa" and dirich2 are implemented.
The script puts a timestamp of execution and the timestamp of the thresholds file to threshold_log.txt.
The script puts the timestamp of the threshold file to billboard_info.