Changeset 27946 for trunk/ippScripts/scripts/magic_destreak.pl
- Timestamp:
- May 13, 2010, 10:56:50 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_destreak.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_destreak.pl
r27718 r27946 42 42 # Parse the command-line arguments 43 43 my ($magic_ds_id, $camera, $streaks, $inv_streaks, $exp_id, $stage, $stage_id, $component, $uri, $path_base, $cam_path_base, $cam_reduction); 44 my ($outroot, $recoveryroot );44 my ($outroot, $recoveryroot, $magicked); 45 45 my ($replace, $release); 46 46 my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile); … … 62 62 'recoveryroot=s' => \$recoveryroot,# "directory" for saving the images of excised pixels 63 63 'replace=s' => \$replace, # replace the input images with the results. 64 'magicked=s' => \$magicked, # magicked state of the run 64 65 'release' => \$release, # NAN masked pixels for release 65 66 'save-temps' => \$save_temps, # Save temporary files? … … 72 73 73 74 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 74 pod2usage( -msg => "Required options: --magic_ds_id --camera --streaks --stage --stage_id --component --uri --path_base --outroot ",75 pod2usage( -msg => "Required options: --magic_ds_id --camera --streaks --stage --stage_id --component --uri --path_base --outroot --magicked", 75 76 -exitval => 3) unless 76 77 defined $magic_ds_id and … … 83 84 defined $uri and 84 85 defined $path_base and 85 defined $outroot; 86 defined $outroot and 87 defined $magicked; 86 88 87 89 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR ); # IPP configuration … … 248 250 my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -"; 249 251 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 250 run(command => $command, verbose => $verbose); 252 # note verbose == 0 to avoid polluting log files with almost always useless information 253 run(command => $command, verbose => 0); 251 254 unless ($success) { 252 255 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 267 270 $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base); 268 271 269 if ($dynamicMasks) { 272 # if magicked is non-zero we are updating a previously magicked component. In this case we don't 273 # touch the camera mask 274 if (!$magicked and $dynamicMasks) { 270 275 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id); 271 276 $ch_mask = $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id);
Note:
See TracChangeset
for help on using the changeset viewer.
