- Timestamp:
- Oct 30, 2012, 4:31:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/ippScripts/scripts/skycell_jpeg.pl
r34491 r34628 269 269 my %tangents = (); 270 270 271 my %products = ('image' => "PPSTACK. OUTPUT",272 'mask' => "PPSTACK. OUTPUT.MASK",273 'variance' => "PPSTACK. OUTPUT.VARIANCE",274 'exp' => "PPSTACK. OUTPUT.EXP",275 'num' => "PPSTACK. OUTPUT.EXPNUM",276 # 'bkg' => "PPSTACK.OUTPUT.BKG"271 my %products = ('image' => "PPSTACK.UNCONV", 272 'mask' => "PPSTACK.UNCONV.MASK", 273 'variance' => "PPSTACK.UNCONV.VARIANCE", 274 'exp' => "PPSTACK.UNCONV.EXP", 275 'num' => "PPSTACK.UNCONV.EXPNUM", 276 'bkg' => "PPSTACK.OUTPUT.BKGMODEL" 277 277 ); 278 278 … … 292 292 unless (exists($tangents{$projection_cell})) { 293 293 # Make a temp file and fill, but be sure to save 294 295 294 foreach my $key (keys %products) { 296 297 295 ($tempFile, $tempName) = tempfile("/tmp/skycell.$projection_cell.$key.XXXX", 298 296 UNLINK => !$save_temps); … … 321 319 $command = "$ppSkycell -images $tangents{$projection_cell}{$key}{NAME}"; 322 320 $command .= " ${outroot}.${projection_cell}.${key} "; 321 if ($key eq 'bkg') { 322 $command .= " -Di BIN1 1 -Di BIN2 1 "; 323 } 324 elsif ($key eq 'image') { 325 $command .= " -masks $tangents{$projection_cell}{mask}{NAME} "; 326 } 327 elsif ($key eq 'mask') { 328 next; # This should be made with the images. 329 } 323 330 print "$command\n"; 324 331 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
