IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2010, 9:31:50 AM (16 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/ippScripts/scripts/dist_bundle.pl

    r27718 r28794  
    3535                     'PPIMAGE.CHIP.MASK' => 'mask',
    3636                     'PPIMAGE.CHIP.VARIANCE' => 'variance' );
     37my %chip_bg_cleaned = ( 'PPBACKGROUND.OUTPUT' => 'image',
     38                        'PPBACKGROUND.OUTPUT.MASK' => 'mask' );
    3739my %camera_cleaned = ( 'PSASTRO.OUTPUT.MASK' => 'mask' );
    3840my %fake_cleaned;
     
    4042                     'PSWARP.OUTPUT.MASK' => 'mask',
    4143                     'PSWARP.OUTPUT.VARIANCE' => 'variance' );
     44my %warp_bg_cleaned = ( 'PSWARP.OUTPUT' => 'image',
     45                        'PSWARP.OUTPUT.MASK' => 'mask' );
    4246my %diff_cleaned = ( 'PPSUB.OUTPUT' => 'image',
    4347                     'PPSUB.OUTPUT.MASK' => 'mask',
     
    233237    if ($stage ne "raw") {
    234238        &my_die("no mask image found in file list", $component, $PS_EXIT_CONFIG_ERROR) if !$mask;
    235         &my_die("no variance image found in file list", $component, $PS_EXIT_CONFIG_ERROR) if !$variance;
     239        if (($stage ne "chip_bg") and ($stage ne "warp_bg")) {
     240            &my_die("no variance image found in file list", $component, $PS_EXIT_CONFIG_ERROR) if !$variance;
     241        }
    236242    }
    237243
     
    246252        my $fh = open_with_retries($mask_resolved);
    247253        close $fh;
    248     } elsif ($stage eq "chip") {
     254    } elsif ($stage eq "chip" or $stage eq "chip_bg") {
    249255        $class_id = $component;
    250256    }
    251257
    252     my $command = "$streaksrelease -stage $stage -image $image -outroot $tmpdir";
     258    my $release_stage;
     259    if ($stage eq "chip_bg") {
     260        $release_stage = 'chip';
     261    } elsif ($stage eq 'warp_bg') {
     262        $release_stage = 'warp';
     263    } else {
     264        $release_stage = $stage;
     265    }
     266
     267
     268    my $command = "$streaksrelease -stage $release_stage -image $image -outroot $tmpdir";
    253269    $command .= " -class_id $class_id" if $class_id;
    254270    $command .= " -mask $mask" if $mask;
     
    262278    }
    263279    if ($inv_image) {
    264         $command = "$streaksrelease -stage $stage -image $inv_image -outroot $tmpdir";
     280        $command = "$streaksrelease -stage $release_stage -image $inv_image -outroot $tmpdir";
    265281        $command .= " -mask $inv_mask" if $inv_mask;
    266282        $command .= " -weight $inv_variance" if $inv_variance;
     
    341357    } elsif ($stage eq "chip") {
    342358        $type = $chip_cleaned{$rule};
     359    } elsif ($stage eq "chip_bg") {
     360        $type = $chip_bg_cleaned{$rule};
    343361    } elsif ($stage eq "camera") {
    344362        $type = $camera_cleaned{$rule};
     
    347365    } elsif ($stage eq "warp") {
    348366        $type = $warp_cleaned{$rule};
     367    } elsif ($stage eq "warp_bg") {
     368        $type = $warp_bg_cleaned{$rule};
    349369    } elsif ($stage eq "diff") {
    350370        $type = $diff_cleaned{$rule};
     
    416436    if ($stage eq "chip") {
    417437        $config_file_rule = "PPIMAGE.CONFIG";
     438    } elsif ($stage eq "chip_bg") {
     439        $config_file_rule = "PPBACKGROUND.CONFIG";
    418440    } elsif ($stage eq "camera") {
    419441        $config_file_rule = "PSASTRO.CONFIG";
     
    422444        return \@file_list;
    423445    } elsif ($stage eq "warp") {
     446        $config_file_rule = "PSWARP.CONFIG";
     447    } elsif ($stage eq "warp_bg") {
    424448        $config_file_rule = "PSWARP.CONFIG";
    425449    } elsif ($stage eq "diff") {
Note: See TracChangeset for help on using the changeset viewer.