Changeset 24168 for branches/pap_magic/ippScripts/scripts/magic_destreak.pl
- Timestamp:
- May 13, 2009, 11:42:57 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_magic/ippScripts/scripts/magic_destreak.pl
r23909 r24168 35 35 36 36 # Parse the command-line arguments 37 my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $ cam_path_base);37 my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $inverse, $cam_path_base); 38 38 my ($outroot, $recoveryroot); 39 39 my ($replace, $remove, $release); … … 49 49 'uri=s' => \$uri, # uri of the input image 50 50 'path_base=s' => \$path_base, # path_base of the input 51 'inverse' => \$inverse, # Inverse subtraction? 51 52 'cam_path_base=s'=> \$cam_path_base, # path_base of the associated camera run 52 53 'outroot=s' => \$outroot, # "directory" for temporary images (may be nebulous) … … 183 184 my $image = $uri; 184 185 185 my ($ mask, $ch_mask, $weight, $astrom);186 my ($image, $mask, $ch_mask, $weight, $astrom); 186 187 187 188 if ($stage eq "raw") { 189 $image = $uri; 188 190 $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base); 189 191 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id) if $release ; … … 191 193 # we use the mask output from the camera stage for input and replace 192 194 # the output of the chip stage with that mask as well. 195 $image = $ipprc->filename("PPIMAGE.CHIP", $path_base, $class_id); 193 196 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id); 194 197 $ch_mask= $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id); … … 196 199 $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base); 197 200 } elsif ($stage eq "warp") { 201 $image = $ipprc->filename("PSWARP.OUTPUT", $path_base); 198 202 $mask = $ipprc->filename("PSWARP.OUTPUT.MASK", $path_base); 199 203 $weight = $ipprc->filename("PSWARP.OUTPUT.VARIANCE", $path_base); 200 204 } elsif ($stage eq "diff") { 201 $mask = $ipprc->filename("PPSUB.OUTPUT.MASK", $path_base); 202 $weight = $ipprc->filename("PPSUB.OUTPUT.VARIANCE", $path_base); 205 my $name = $inverse ? "PPSUB.INVERSE" : "PPSUB.OUTPUT"; # Base name for images 206 $image = $ipprc->filename($name, $path_base); 207 $mask = $ipprc->filename("$name.MASK", $path_base); 208 $weight = $ipprc->filename("$name.VARIANCE", $path_base); 203 209 } 204 210
Note:
See TracChangeset
for help on using the changeset viewer.
