- Timestamp:
- Jul 17, 2014, 12:36:19 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/background_chip.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-ops-20130712/ippScripts/scripts/background_chip.pl
r35681 r37068 34 34 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); 35 35 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 36 my $ppImage = can_run('ppImage') or (warn "Can't find ppImage" and $missing_tools = 1); 36 37 if ($missing_tools) { 37 38 warn("Can't find required tools."); … … 134 135 } 135 136 my $in_wt = $ipprc->filename("PPIMAGE.CHIP.VARIANCE", $in_path, $class_id); 136 my $in_bg = $ipprc->filename("PSPHOT.BACKMDL", $in_path, $class_id); 137 my $in_bg; 138 if (1) { 139 $in_bg = $ipprc->filename("PPIMAGE.BACKMDL", $cam_path_base, $class_id); 140 } 141 else { 142 $in_bg = $ipprc->filename("PSPHOT.BACKMDL", $in_path, $class_id); 143 } 137 144 my $in_pattern = $ipprc->filename("PPIMAGE.PATTERN", $in_path, $class_id); 138 145 my $in_config = $ipprc->filename("PPIMAGE.CONFIG", $in_path, $class_id); … … 220 227 } 221 228 229 my $do_binned_images = 1; # Generate the binned images that are useful for making JPEGs 230 if ($do_binned_images) { 231 my $command = "$ppImage -file $out_image -mask $out_mask $outroot -recipe PPIMAGE PPIMAGE_PA -Db PHOTOM F"; 232 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 233 run(command => $command, verbose => $verbose); 234 unless ($success) { 235 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 236 &my_die("Unable to perform ppImage: $error_code", $chip_bg_id, $class_id, $error_code); 237 } 238 } 239 240 222 241 if (!$quality and !$no_op) { 223 242 &my_die("Couldn't find expected output file: $out_image", $chip_bg_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($out_image);
Note:
See TracChangeset
for help on using the changeset viewer.
