Changeset 21157
- Timestamp:
- Jan 23, 2009, 3:07:13 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_destreak.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_destreak.pl
r21085 r21157 30 30 my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $cam_path_base); 31 31 my ($outroot, $recoveryroot); 32 my ($replace, $remove );32 my ($replace, $remove, $release); 33 33 my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile); 34 35 # XXX: remove this 36 $release = 1; 34 37 35 38 GetOptions( … … 45 48 'outroot=s' => \$outroot, # "directory" for temporary images (may be nebulous) 46 49 'recoveryroot=s' => \$recoveryroot,# "directory" for saving the images of excised pixels 47 'replace=s' => \$replace, # replace the input images with the results. 48 'remove=s' => \$remove, # remove the original images when done YIKES! 50 'replace=s' => \$replace, # replace the input images with the results. 51 'remove=s' => \$remove, # remove the original images when done YIKES! 52 'release' => \$release, # NAN masked pixels for release 49 53 'save-temps' => \$save_temps, # Save temporary files? 50 54 'dbname=s' => \$dbname, # Database name … … 180 184 if ($stage eq "raw") { 181 185 $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base); 186 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id) if $release ; 182 187 } elsif ($stage eq "chip") { 183 188 # we use the mask output from the camera stage for input and replace … … 197 202 { 198 203 my $command = "$streaksremove -stage $stage -tmproot $outroot -streaks $streaks -image $image"; 204 205 $command .= " -release" if $release; 206 199 207 $command .= " -class_id $class_id" if defined $class_id; 200 208 $command .= " -recovery $recoveryroot" if defined $recoveryroot;
Note:
See TracChangeset
for help on using the changeset viewer.
