Changeset 31435 for trunk/ippScripts/scripts
- Timestamp:
- May 4, 2011, 3:59:42 PM (15 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
- 1 copied
-
diff_skycell.pl (modified) (3 diffs)
-
lap_science.pl (copied) (copied from branches/czw_branch/20110406/ippScripts/scripts/lap_science.pl )
-
magic_destreak.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r30843 r31435 31 31 my $ppSub = can_run('ppSub') or (warn "Can't find ppSub" and $missing_tools = 1); 32 32 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 33 my $nebInsert = can_run('neb-insert') or (warn "Can't find neb-insert" and $missing_tools = 1); 33 34 if ($missing_tools) { 34 35 warn("Can't find required tools."); … … 265 266 my $do_photom = 1; 266 267 my $dump_config = 1; 268 if ($reduction eq 'NOCONVDIFF') { 269 $do_photom = 0; 270 } 267 271 if ($run_state eq 'new') { 268 272 $configuration = prepare_output("PPSUB.CONFIG", $outroot, 1); … … 380 384 } 381 385 } 386 if ($reduction eq 'NOCONVDIFF') { 387 my $refConv = prepare_output("PPSUB.REF.CONV", $outroot, 0); 388 my $templateFile = $ipprc->file_resolve($template,0); 389 $command = "$nebInsert $refConv $templateFile"; 390 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 391 run(command => $command, verbose => $verbose); 392 unless ($success) { 393 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 394 &my_die("Unable to perform neb-insert: $error_code", $diff_id, $skycell_id, $error_code); 395 } 396 } 397 398 382 399 } elsif ($run_state eq 'update') { 383 400 &my_die("Update resulted in poor quality image: $quality", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR); -
trunk/ippScripts/scripts/magic_destreak.pl
r30694 r31435 360 360 $command .= " -chip_mask $ch_mask" if defined $ch_mask; 361 361 $command .= " -weight $weight" if defined $weight; 362 $command .= " -sources $sources" if defined $sources; 362 if ((defined($sources))&&($ipprc->file_exists($sources))) { 363 $command .= " -sources $sources" if defined $sources; 364 } 365 else { 366 print "Did not add sources because they do not appear to exist. This may be an error.\n"; 367 } 363 368 $command .= " -skycelllist $skycell_list" if defined $skycell_list; 364 369 $command .= " -replace" if $replace;
Note:
See TracChangeset
for help on using the changeset viewer.
