IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13663


Ignore:
Timestamp:
Jun 5, 2007, 3:50:47 PM (19 years ago)
Author:
Paul Price
Message:

Using ppSub instead of pois.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/diff_skycell.pl

    r13275 r13663  
    3030my $ipprc = PS::IPP::Config->new(); # IPP configuration
    3131
    32 use constant POIS_OPTIONS => '-v -B 1000';
    33 
    3432use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
    3533use Pod::Usage qw( pod2usage );
     
    5351my $missing_tools;
    5452my $difftool = can_run('difftool') or (warn "Can't find difftool" and $missing_tools = 1);
    55 my $pois = can_run('pois') or (warn "Can't find pois" and $missing_tools = 1);
     53my $ppSub = can_run('ppSub') or (warn "Can't find ppSub" and $missing_tools = 1);
    5654if ($missing_tools) {
    5755    warn("Can't find required tools.");
     
    135133my $stats = PS::IPP::Metadata::Stats->new(); # Stats parser
    136134unless ($no_op) {
    137     my $command = "$pois " . POIS_OPTIONS() . " $templateResolved $inputResolved $outputNameResolved"; # Command to run pois
     135    my $command = "$ppSub $input $template $outputName"; # Command to run ppSub
    138136
    139137    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    141139    unless ($success) {
    142140        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    143         &my_die("Unable to perform ppImage: $error_code", $diff_id, $error_code);
     141        &my_die("Unable to perform ppSub: $error_code", $diff_id, $error_code);
    144142    }
    145143    &my_die("Couldn't find expected output file: $outputName", $diff_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputName);
     
    149147
    150148    # Get the statistics on the residual image
    151     if (0) { ### Disabled because pois doesn't output stats yet
    152         my $statsFile;          # File handle
    153         open $statsFile, $ipprc->file_resolve($outputStats) or &my_die("Can't open statistics file $outputStats: $!", $diff_id, $PS_EXIT_SYS_ERROR);
    154         my @contents = <$statsFile>; # Contents of file
    155         close $statsFile;
    156         my $metadata = $mdcParser->parse(join "", @contents) or
    157             &my_die("Unable to parse metadata config doc", $diff_id, $PS_EXIT_PROG_ERROR);
    158         $stats->parse($metadata) or &my_die("Unable to find all values in statistics output.", $diff_id, $PS_EXIT_PROG_ERROR);
    159     }
     149    my $statsFile;              # File handle
     150    open $statsFile, $ipprc->file_resolve($outputStats) or &my_die("Can't open statistics file $outputStats: $!", $diff_id, $PS_EXIT_SYS_ERROR);
     151    my @contents = <$statsFile>; # Contents of file
     152    close $statsFile;
     153    my $metadata = $mdcParser->parse(join "", @contents) or
     154        &my_die("Unable to parse metadata config doc", $diff_id, $PS_EXIT_PROG_ERROR);
     155    $stats->parse($metadata) or &my_die("Unable to find all values in statistics output.", $diff_id, $PS_EXIT_PROG_ERROR);
    160156}
    161157
Note: See TracChangeset for help on using the changeset viewer.