Changeset 24168
- Timestamp:
- May 13, 2009, 11:42:57 AM (17 years ago)
- Location:
- branches/pap_magic
- Files:
-
- 3 edited
-
ippScripts/scripts/magic_destreak.pl (modified) (5 diffs)
-
ippTasks/magic.pro (modified) (2 diffs)
-
ippTools/share/magicdstool_todestreak.sql (modified) (4 diffs)
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 -
branches/pap_magic/ippTasks/magic.pro
r24164 r24168 409 409 book getword magicToDS $pageName uri -var URI 410 410 book getword magicToDS $pageName path_base -var PATH_BASE 411 book getword magicToDS $pageName inverse -var INVERSE 411 412 book getword magicToDS $pageName cam_path_base -var CAM_PATH_BASE 412 413 book getword magicToDS $pageName outroot -var OUTROOT … … 423 424 424 425 $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --streaks $STREAKS --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --uri $URI --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --outroot $OUTROOT --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE --remove $REMOVE 426 if ($INVERSE > 0) 427 # Inverse subtraction 428 $run = $run --inverse 429 end 425 430 426 431 add_standard_args run -
branches/pap_magic/ippTools/share/magicdstool_todestreak.sql
r23974 r24168 13 13 rawImfile.uri as uri, 14 14 NULL as path_base, 15 magicRun.inverse, 15 16 camProcessedExp.path_base as cam_path_base, 16 17 outroot, … … 44 45 chipProcessedImfile.uri, 45 46 chipProcessedImfile.path_base, 47 magicRun.inverse, 46 48 camProcessedExp.path_base as cam_path_base, 47 49 outroot, … … 79 81 warpSkyfile.uri, 80 82 warpSkyfile.path_base, 83 magicRun.inverse, 81 84 NULL as cam_path_base, 82 85 outroot, … … 113 116 magicRun.diff_id as stage_id, 114 117 diffSkyfile.skycell_id as component, 115 diffSkyfile.uri,118 NULL AS uri, 116 119 diffSkyfile.path_base, 120 magicRun.inverse, 117 121 NULL as cam_path_base, 118 122 outroot,
Note:
See TracChangeset
for help on using the changeset viewer.
