IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2009, 3:08:18 PM (17 years ago)
Author:
bills
Message:

run streaksrelease on inverse diff images

File:
1 edited

Legend:

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

    r25677 r25941  
    4141my %diff_cleaned = ( 'PPSUB.OUTPUT' => 'image',
    4242                     'PPSUB.OUTPUT.MASK' => 'mask',
    43                      'PPSUB.OUTPUT.VARIANCE' => 'variance' );
     43                     'PPSUB.OUTPUT.VARIANCE' => 'variance',
     44                     'PPSUB.INVERSE' => 'inv_image',
     45                     'PPSUB.INVERSE.MASK' => 'inv_mask',
     46                     'PPSUB.INVERSE.VARIANCE' => 'inv_variance' );
    4447my %stack_cleaned = ( 'PPSTACK.OUTPUT' => 'image',
    4548                      'PPSTACK.OUTPUT.MASK' => 'mask',
     
    149152
    150153my ($image, $mask, $variance);
     154my ($inv_image, $inv_mask, $inv_variance);
    151155
    152156# foreach my $file_rule (keys %$file_list) {
     
    198202        } elsif ($image_type eq 'variance') {
    199203            $variance = $file_name;;
     204        } elsif ($image_type eq 'inv_image') {
     205            $inv_image = $file_name;
     206        } elsif ($image_type eq 'inv_mask') {
     207            $inv_mask = $file_name;;
     208        } elsif ($image_type eq 'inv_variance') {
     209            $inv_variance = $file_name;;
    200210        } else {
    201211            &my_die("invalid image type found: $image_type", $dist_id, $component,
     
    246256        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    247257        &my_die("Unable to perform $command: $error_code", $dist_id, $component, $error_code);
     258    }
     259    if ($inv_image) {
     260        $command = "$streaksrelease -stage $stage -image $inv_image -outroot $tmpdir";
     261        $command .= " -mask $inv_mask" if $inv_mask;
     262        $command .= " -weight $inv_variance" if $inv_variance;
     263        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     264            run(command => $command, verbose => $verbose);
     265        unless ($success) {
     266            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     267            &my_die("Unable to perform $command: $error_code", $dist_id, $component, $error_code);
     268        }
    248269    }
    249270}
Note: See TracChangeset for help on using the changeset viewer.