- Timestamp:
- Jul 30, 2010, 9:31:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/ippScripts/scripts/dist_bundle.pl
r27718 r28794 35 35 'PPIMAGE.CHIP.MASK' => 'mask', 36 36 'PPIMAGE.CHIP.VARIANCE' => 'variance' ); 37 my %chip_bg_cleaned = ( 'PPBACKGROUND.OUTPUT' => 'image', 38 'PPBACKGROUND.OUTPUT.MASK' => 'mask' ); 37 39 my %camera_cleaned = ( 'PSASTRO.OUTPUT.MASK' => 'mask' ); 38 40 my %fake_cleaned; … … 40 42 'PSWARP.OUTPUT.MASK' => 'mask', 41 43 'PSWARP.OUTPUT.VARIANCE' => 'variance' ); 44 my %warp_bg_cleaned = ( 'PSWARP.OUTPUT' => 'image', 45 'PSWARP.OUTPUT.MASK' => 'mask' ); 42 46 my %diff_cleaned = ( 'PPSUB.OUTPUT' => 'image', 43 47 'PPSUB.OUTPUT.MASK' => 'mask', … … 233 237 if ($stage ne "raw") { 234 238 &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 } 236 242 } 237 243 … … 246 252 my $fh = open_with_retries($mask_resolved); 247 253 close $fh; 248 } elsif ($stage eq "chip" ) {254 } elsif ($stage eq "chip" or $stage eq "chip_bg") { 249 255 $class_id = $component; 250 256 } 251 257 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"; 253 269 $command .= " -class_id $class_id" if $class_id; 254 270 $command .= " -mask $mask" if $mask; … … 262 278 } 263 279 if ($inv_image) { 264 $command = "$streaksrelease -stage $ stage -image $inv_image -outroot $tmpdir";280 $command = "$streaksrelease -stage $release_stage -image $inv_image -outroot $tmpdir"; 265 281 $command .= " -mask $inv_mask" if $inv_mask; 266 282 $command .= " -weight $inv_variance" if $inv_variance; … … 341 357 } elsif ($stage eq "chip") { 342 358 $type = $chip_cleaned{$rule}; 359 } elsif ($stage eq "chip_bg") { 360 $type = $chip_bg_cleaned{$rule}; 343 361 } elsif ($stage eq "camera") { 344 362 $type = $camera_cleaned{$rule}; … … 347 365 } elsif ($stage eq "warp") { 348 366 $type = $warp_cleaned{$rule}; 367 } elsif ($stage eq "warp_bg") { 368 $type = $warp_bg_cleaned{$rule}; 349 369 } elsif ($stage eq "diff") { 350 370 $type = $diff_cleaned{$rule}; … … 416 436 if ($stage eq "chip") { 417 437 $config_file_rule = "PPIMAGE.CONFIG"; 438 } elsif ($stage eq "chip_bg") { 439 $config_file_rule = "PPBACKGROUND.CONFIG"; 418 440 } elsif ($stage eq "camera") { 419 441 $config_file_rule = "PSASTRO.CONFIG"; … … 422 444 return \@file_list; 423 445 } elsif ($stage eq "warp") { 446 $config_file_rule = "PSWARP.CONFIG"; 447 } elsif ($stage eq "warp_bg") { 424 448 $config_file_rule = "PSWARP.CONFIG"; 425 449 } elsif ($stage eq "diff") {
Note:
See TracChangeset
for help on using the changeset viewer.
