Changeset 13663
- Timestamp:
- Jun 5, 2007, 3:50:47 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diff_skycell.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r13275 r13663 30 30 my $ipprc = PS::IPP::Config->new(); # IPP configuration 31 31 32 use constant POIS_OPTIONS => '-v -B 1000';33 34 32 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 35 33 use Pod::Usage qw( pod2usage ); … … 53 51 my $missing_tools; 54 52 my $difftool = can_run('difftool') or (warn "Can't find difftool" and $missing_tools = 1); 55 my $p ois = can_run('pois') or (warn "Can't find pois" and $missing_tools = 1);53 my $ppSub = can_run('ppSub') or (warn "Can't find ppSub" and $missing_tools = 1); 56 54 if ($missing_tools) { 57 55 warn("Can't find required tools."); … … 135 133 my $stats = PS::IPP::Metadata::Stats->new(); # Stats parser 136 134 unless ($no_op) { 137 my $command = "$p ois " . POIS_OPTIONS() . " $templateResolved $inputResolved $outputNameResolved"; # Command to run pois135 my $command = "$ppSub $input $template $outputName"; # Command to run ppSub 138 136 139 137 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 141 139 unless ($success) { 142 140 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 143 &my_die("Unable to perform pp Image: $error_code", $diff_id, $error_code);141 &my_die("Unable to perform ppSub: $error_code", $diff_id, $error_code); 144 142 } 145 143 &my_die("Couldn't find expected output file: $outputName", $diff_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputName); … … 149 147 150 148 # 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); 160 156 } 161 157
Note:
See TracChangeset
for help on using the changeset viewer.
