IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28732


Ignore:
Timestamp:
Jul 28, 2010, 1:05:21 PM (16 years ago)
Author:
bills
Message:

support for bundling chip_bg and warp_bg stages

File:
1 edited

Legend:

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

    r28536 r28732  
    237237    if ($stage ne "raw") {
    238238        &my_die("no mask image found in file list", $component, $PS_EXIT_CONFIG_ERROR) if !$mask;
    239         &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        }
    240242    }
    241243
     
    254256    }
    255257
    256     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";
    257269    $command .= " -class_id $class_id" if $class_id;
    258270    $command .= " -mask $mask" if $mask;
     
    266278    }
    267279    if ($inv_image) {
    268         $command = "$streaksrelease -stage $stage -image $inv_image -outroot $tmpdir";
     280        $command = "$streaksrelease -stage $release_stage -image $inv_image -outroot $tmpdir";
    269281        $command .= " -mask $inv_mask" if $inv_mask;
    270282        $command .= " -weight $inv_variance" if $inv_variance;
     
    345357    } elsif ($stage eq "chip") {
    346358        $type = $chip_cleaned{$rule};
     359    } elsif ($stage eq "chip_bg") {
     360        $type = $chip_bg_cleaned{$rule};
    347361    } elsif ($stage eq "camera") {
    348362        $type = $camera_cleaned{$rule};
     
    351365    } elsif ($stage eq "warp") {
    352366        $type = $warp_cleaned{$rule};
     367    } elsif ($stage eq "warp_bg") {
     368        $type = $warp_bg_cleaned{$rule};
    353369    } elsif ($stage eq "diff") {
    354370        $type = $diff_cleaned{$rule};
     
    420436    if ($stage eq "chip") {
    421437        $config_file_rule = "PPIMAGE.CONFIG";
    422     } elsif ($stage eq "chip") {
     438    } elsif ($stage eq "chip_bg") {
    423439        $config_file_rule = "PPBACKGROUND.CONFIG";
    424440    } elsif ($stage eq "camera") {
     
    430446        $config_file_rule = "PSWARP.CONFIG";
    431447    } elsif ($stage eq "warp_bg") {
    432         $config_file_rule = "PSWARP.CONFIG";
     448        $config_file_rule = "PPBACKGROUND.CONFIG";
    433449    } elsif ($stage eq "diff") {
    434450        $config_file_rule = "PPSUB.CONFIG";
Note: See TracChangeset for help on using the changeset viewer.