IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 18, 2009, 10:16:14 AM (16 years ago)
Author:
bills
Message:

Don't look for streaksremove stats file if stage is camera since streaksremove does not
run for that stage.

File:
1 edited

Legend:

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

    r26447 r26461  
    381381}
    382382
    383 file_check($statsFile);
    384383my $statsFlags;
    385 {
    386     my $resolvedStatsFile = $ipprc->file_resolve($statsFile);
    387     my $command = "$ppStatsFromMetadata $resolvedStatsFile - STREAKSREMOVE";
    388 
    389     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    390         run(command => $command, verbose => $verbose);
    391     unless ($success) {
    392         $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    393         &my_die("Unable to perform ppStatsFromMetadata: $error_code", $magic_ds_id, $component, $error_code);
    394     }
    395     foreach my $line (@$stdout_buf) {
    396         $statsFlags .= " $line";
    397     }
    398     chomp $statsFlags;
     384if ($stage ne "camera") {
     385    file_check($statsFile);
     386    {
     387        my $resolvedStatsFile = $ipprc->file_resolve($statsFile);
     388        my $command = "$ppStatsFromMetadata $resolvedStatsFile - STREAKSREMOVE";
     389
     390        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     391            run(command => $command, verbose => $verbose);
     392        unless ($success) {
     393            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     394            &my_die("Unable to perform ppStatsFromMetadata: $error_code", $magic_ds_id, $component, $error_code);
     395        }
     396        foreach my $line (@$stdout_buf) {
     397            $statsFlags .= " $line";
     398        }
     399        chomp $statsFlags;
     400    }
    399401}
    400402
Note: See TracChangeset for help on using the changeset viewer.