Changeset 27301
- Timestamp:
- Mar 16, 2010, 12:39:45 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
ippScripts/scripts/magic_destreak.pl (modified) (11 diffs)
-
ippScripts/scripts/magic_destreak_cleanup.pl (modified) (9 diffs)
-
ippScripts/scripts/magic_destreak_revert.pl (modified) (7 diffs)
-
ippTasks/destreak.pro (modified) (4 diffs)
-
ippTools/share/magicdstool_todestreak_camera.sql (modified) (1 diff)
-
ippTools/share/magicdstool_todestreak_chip.sql (modified) (2 diffs)
-
ippTools/share/magicdstool_todestreak_diff.sql (modified) (1 diff)
-
ippTools/share/magicdstool_todestreak_raw.sql (modified) (2 diffs)
-
ippTools/share/magicdstool_todestreak_warp.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_destreak.pl
r26554 r27301 32 32 my $camtool = can_run('camtool') or (warn "Can't find camtool" and $missing_tools = 1); 33 33 my $censorObjects = can_run('censorObjects') or (warn "Can't find censorObjects" and $missing_tools = 1); 34 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); 34 35 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 35 36 if ($missing_tools) { … … 39 40 40 41 # Parse the command-line arguments 41 my ($magic_ds_id, $camera, $streaks, $inv_streaks, $exp_id, $stage, $stage_id, $component, $uri, $path_base, $cam_path_base );42 my ($magic_ds_id, $camera, $streaks, $inv_streaks, $exp_id, $stage, $stage_id, $component, $uri, $path_base, $cam_path_base, $cam_reduction); 42 43 my ($outroot, $recoveryroot); 43 44 my ($replace, $release); … … 56 57 'path_base=s' => \$path_base, # path_base of the input 57 58 'cam_path_base=s'=> \$cam_path_base, # path_base from camera stage (for chip and raw) 59 'cam_reduction=s'=> \$cam_reduction, # reduction class from camera stage (for chip and raw) 58 60 'outroot=s' => \$outroot, # "directory" for temporary images (may be nebulous) 59 61 'recoveryroot=s' => \$recoveryroot,# "directory" for saving the images of excised pixels … … 84 86 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 85 87 $ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile; 88 my $recipe_psastro = $ipprc->reduction($cam_reduction, 'PSASTRO'); # Recipe to use 89 &my_die("Unrecognised PSASTRO recipe", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_psastro; 86 90 87 91 my ($skycell_args, $class_id, $skycell_id); … … 97 101 } elsif ($stage ne "camera") { 98 102 &my_die("Invalid value for stage: $stage", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR); 99 } 103 } 100 104 $inv_streaks = undef if defined($inv_streaks) and ($inv_streaks eq "NULL"); 101 105 … … 114 118 if ($stage eq 'camera') { 115 119 my $nebulousServer = metadataLookupStr( $ipprc->{_siteConfig}, 'NEB_SERVER' ); 116 &my_die("cannot find NEB_SERVER in site configuration", 117 $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) 120 &my_die("cannot find NEB_SERVER in site configuration", 121 $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) 118 122 if !$ nebulousServer; 119 123 … … 233 237 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id) if $release ; 234 238 } elsif ($stage eq "chip") { 239 240 # Check to see if we're using dynamic masks 241 my $dynamicMasks; # Use dynamic masks? 242 { 243 # Get the PSASTRO recipe 244 my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -"; 245 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 246 run(command => $command, verbose => $verbose); 247 unless ($success) { 248 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 249 &my_die("Unable to perform ppConfigDump: $error_code", $magic_ds_id, $component, 250 $PS_EXIT_CONFIG_ERROR); 251 } 252 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or 253 &my_die("Unable to parse metadata config doc", $magic_ds_id, $component, 254 $PS_EXIT_CONFIG_ERROR); 255 256 $dynamicMasks = metadataLookupBool($recipeData, 'REFSTAR_MASK'); 257 } 258 235 259 # we use the mask output from the camera stage for input and replace 236 260 # the output of the chip stage with that mask as well. 237 261 $image = $ipprc->filename("PPIMAGE.CHIP", $path_base, $class_id); 238 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id);239 $ch_mask= $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id);240 262 $weight = $ipprc->filename("PPIMAGE.CHIP.VARIANCE", $path_base, $class_id); 241 263 $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base); 242 if (!$ipprc->file_exists($mask)) { 243 carp("camera mask file $mask for $component not found. Continuing using mask from chip stage."); 244 $mask = $ch_mask; 245 $ch_mask = undef; 246 } 264 265 if ($dynamicMasks) { 266 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id); 267 $ch_mask = $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id); 268 } else { 269 $mask = $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id); 270 } 271 247 272 # XXX: should we censor the sources as well? For now we're leaving them out of the distribution bundles 248 273 # because they confuse people … … 262 287 263 288 if ($inv_streaks) { 264 # create a temporary file containing the contents of the 289 # create a temporary file containing the contents of the 265 290 # two streaks files 266 291 ($allstreaks_fh, $allstreaks_name) = tempfile ("/tmp/all.streaks.XXXX", … … 357 382 my $quality = $file->{quality}; 358 383 if (!$quality) { 359 my $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $path_base, $class_id); 384 my $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $path_base, $class_id); 360 385 if (! $ipprc->file_exists($mask)) { 361 386 # camera mask doesn't exist for this chip. Fall back to the chip mask … … 379 404 &my_die("Unable to perform censorObjects: $error_code", $magic_ds_id, $component, $error_code); 380 405 } 381 my $output = $ipprc->filename("CENSOR.OUTPUT", $backup_path_base); 406 my $output = $ipprc->filename("CENSOR.OUTPUT", $backup_path_base); 382 407 &my_die("expected output file $output not found ", $magic_ds_id, $component, $PS_EXIT_DATA_ERROR) 383 408 unless $ipprc->file_exists($output); … … 481 506 } 482 507 483 close $fout 508 close $fout 484 509 or my_die("failed to close combined streaks file", $magic_ds_id, 485 510 $component, $PS_EXIT_UNKNOWN_ERROR); -
trunk/ippScripts/scripts/magic_destreak_cleanup.pl
r27256 r27301 30 30 my $missing_tools; 31 31 my $magicdstool = can_run('magicdstool') or (warn "Can't find magicdstool" and $missing_tools = 1); 32 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); 32 33 if ($missing_tools) { 33 34 warn("Can't find required tools."); … … 36 37 37 38 # Parse the command-line arguments 38 my ($magic_ds_id, $camera , $force);39 my ($magic_ds_id, $camera); 39 40 my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile); 40 41 … … 42 43 'magic_ds_id=s' => \$magic_ds_id,# Magic destreak run identifier 43 44 'camera=s' => \$camera, # camera for evaluating file rules 44 'force' => \$force, # force deletion45 45 'save-temps' => \$save_temps, # Save temporary files? 46 46 'dbname=s' => \$dbname, # Database name … … 87 87 my $dbh = DBI->connect($dsn, $dbuser, $dbpassword) or die "Cannot connect to mysql server\n"; 88 88 89 my $q1 = "SELECT magicDSRun.*, camera, camProcessedExp.path_base AS cam_path_base, magicRun.inverse"90 . " FROM magicDSRun JOIN magicRun USING(magic_id) JOIN rawExp USING(exp_id) LEFT JOIN camProcessedExp USING(cam_id) "89 my $q1 = "SELECT magicDSRun.*, camera, camProcessedExp.path_base AS cam_path_base, camRun.reduction AS cam_reduction, magicRun.inverse" 90 . " FROM magicDSRun JOIN magicRun USING(magic_id) JOIN rawExp USING(exp_id) LEFT JOIN camProcessedExp USING(cam_id) LEFT JOIN camRun USING(cam_id)" 91 91 . " WHERE magic_ds_id = $magic_ds_id"; 92 92 my $q2 = "SELECT * from magicDSFile where magic_ds_id = $magic_ds_id"; 93 94 # my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files95 93 96 94 my $stmt1 = $dbh->prepare($q1); … … 104 102 my $stage_id = $run->{stage_id}; 105 103 my $cam_path_base = $run->{cam_path_base}; 104 my $cam_reduction = $run->{cam_reduction}; 106 105 my $inverse = $run->{inverse}; 107 my $replace = $run->{re_place};108 106 109 107 110 108 &my_die("unexpected run state found: $state", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $state ne "goto_cleaned"; 111 &my_die("clean not allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if ($stage eq "raw"); # XXX: add this once we implement and $replace; 109 &my_die("clean not allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw"; 110 111 my $recipe_psastro = $ipprc->reduction($cam_reduction, 'PSASTRO'); # Recipe to use 112 &my_die("Unrecognised PSASTRO recipe", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_psastro; 112 113 113 114 … … 126 127 127 128 if ($stage eq "chip") { 128 # we use the mask output from the camera stage for input and replace 129 # the output of the chip stage with that mask as well. 130 my $cammask = $cam_path_base ? $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $component) : undef; 129 # Check to see if we're using dynamic masks 130 my $dynamicMasks; # Use dynamic masks? 131 { 132 # Get the PSASTRO recipe 133 my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -"; 134 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 135 run(command => $command, verbose => $verbose); 136 unless ($success) { 137 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 138 &my_die("Unable to perform ppConfigDump: $error_code", $magic_ds_id, $component, 139 $PS_EXIT_CONFIG_ERROR); 140 } 141 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 142 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or 143 &my_die("Unable to parse metadata config doc", $magic_ds_id, $component, 144 $PS_EXIT_CONFIG_ERROR); 145 146 $dynamicMasks = metadataLookupBool($recipeData, 'REFSTAR_MASK'); 147 } 131 148 132 149 if ($backup_path_base) { 133 150 $bimage = $ipprc->filename("PPIMAGE.CHIP", $backup_path_base, $component); 134 $bch_mask= $ipprc->filename("PPIMAGE.CHIP.MASK", $backup_path_base, $component); 151 152 if ($dynamicMasks) { 153 my $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $component); 154 # This is kludgey but correct 155 $bmask = dirname($backup_path_base) . "/SR_" . basename($mask); 156 $bch_mask= $ipprc->filename("PPIMAGE.CHIP.MASK", $backup_path_base, $component); 157 } else { 158 $bmask = $ipprc->filename("PPIMAGE.CHIP.MASK", $backup_path_base, $component); 159 } 135 160 $bweight = $ipprc->filename("PPIMAGE.CHIP.VARIANCE", $backup_path_base, $component); 136 # This is kludgey but correct 137 138 my $prefix; 139 if ($backup_path_base =~ /\.SR/) { 140 $prefix = ""; 161 } 162 if ($recovery_path_base) { 163 $rimage = $ipprc->filename("PPIMAGE.CHIP", $recovery_path_base, $component); 164 165 if ($dynamicMasks) { 166 my $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $component); 167 # This is kludgey but correct 168 $rmask = dirname($recovery_path_base) . "/" . basename($mask); 169 $rch_mask= $ipprc->filename("PPIMAGE.CHIP.MASK", $recovery_path_base, $component); 141 170 } else { 142 $prefix = "SR_"; 143 } 144 145 $bmask = dirname($backup_path_base) . "/" . $prefix . basename($cammask) if $cammask; 146 } 147 if ($recovery_path_base) { 148 $rimage = $ipprc->filename("PPIMAGE.CHIP", $recovery_path_base, $component); 149 $rch_mask= $ipprc->filename("PPIMAGE.CHIP.MASK", $recovery_path_base, $component); 171 $rmask = $ipprc->filename("PPIMAGE.CHIP.MASK", $recovery_path_base, $component); 172 } 150 173 $rweight = $ipprc->filename("PPIMAGE.CHIP.VARIANCE", $recovery_path_base, $component); 151 # This is kludgey but correct152 $rmask = dirname($recovery_path_base) . "/" . basename($cammask) if $cammask;;153 174 } 154 175 } elsif ($stage eq "camera") { … … 162 183 $bweight = $ipprc->filename("PSWARP.OUTPUT.VARIANCE", $backup_path_base); 163 184 $bsources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $backup_path_base); 164 } 185 } 165 186 if ($recovery_path_base) { 166 187 $rimage = $ipprc->filename("PSWARP.OUTPUT", $recovery_path_base); … … 168 189 $rweight = $ipprc->filename("PSWARP.OUTPUT.VARIANCE", $recovery_path_base); 169 190 $rsources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $recovery_path_base); 170 } 191 } 171 192 } elsif ($stage eq "diff") { 172 193 my $name = "PPSUB.OUTPUT"; … … 228 249 if (!$no_update) { 229 250 print STDERR "deleting $file\n" if $verbose; 230 $ipprc->file_delete($file, $force) or my_die("Failed to delete $file", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR);231 } else {251 $ipprc->file_delete($file, 1) or my_die("Failed to delete $file", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR); 252 } else { 232 253 print STDERR "skipping delete $file\n"; 233 254 } -
trunk/ippScripts/scripts/magic_destreak_revert.pl
r27092 r27301 30 30 my $magicdstool = can_run('magicdstool') or (warn "Can't find magicdstool" and $missing_tools = 1); 31 31 my $isdestreaked = can_run('isdestreaked') or (warn "Can't find isdestreaked" and $missing_tools = 1); 32 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); 32 33 if ($missing_tools) { 33 34 warn("Can't find required tools."); … … 36 37 37 38 # Parse the command-line arguments 38 my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $bothways, $cam_path_base );39 my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $bothways, $cam_path_base, $cam_reduction); 39 40 my ($outroot, $recoveryroot, $replace, $release, $bytes, $md5sum); 40 41 my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile); … … 48 49 'path_base=s' => \$path_base, # path_base of the input 49 50 'cam_path_base=s'=> \$cam_path_base, # path_base of the associated camera run 51 'cam_reduction=s'=> \$cam_reduction, # reduction class of the associated camera run 50 52 'outroot=s' => \$outroot, # "directory" for temporary images (may be nebulous) 51 53 'recoveryroot=s' => \$recoveryroot,# "directory" for saving the images of excised pixels … … 78 80 79 81 $ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile; 82 my $recipe_psastro = $ipprc->reduction($cam_reduction, 'PSASTRO'); # Recipe to use 83 &my_die("Unrecognised PSASTRO recipe", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_psastro; 80 84 81 85 my $nebulousServer = metadataLookupStr( $ipprc->{_siteConfig}, 'NEB_SERVER' ); … … 112 116 } 113 117 114 &my_die("replace not allowed for non-nebulous files", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) 118 &my_die("replace not allowed for non-nebulous files", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) 115 119 if ($replace eq "T") and !$nebulousInput; 116 120 … … 156 160 $bimage = $backup_path_base . ".fits"; 157 161 } elsif ($stage eq "chip") { 162 # Check to see if we're using dynamic masks 163 my $dynamicMasks; # Use dynamic masks? 164 { 165 # Get the PSASTRO recipe 166 my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -"; 167 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 168 run(command => $command, verbose => $verbose); 169 unless ($success) { 170 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 171 &my_die("Unable to perform ppConfigDump: $error_code", $magic_ds_id, $component, 172 $PS_EXIT_CONFIG_ERROR); 173 } 174 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or 175 &my_die("Unable to parse metadata config doc", $magic_ds_id, $component, 176 $PS_EXIT_CONFIG_ERROR); 177 178 $dynamicMasks = metadataLookupBool($recipeData, 'REFSTAR_MASK'); 179 } 180 158 181 # we use the mask output from the camera stage for input and replace 159 182 # the output of the chip stage with that mask as well. 160 183 $image = $ipprc->filename("PPIMAGE.CHIP", $path_base, $class_id); 161 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id);162 $ch_mask= $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id);163 184 $weight = $ipprc->filename("PPIMAGE.CHIP.VARIANCE", $path_base, $class_id); 185 186 if ($dynamicMasks) { 187 $mask = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id); 188 $ch_mask = $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id); 189 } else { 190 $mask = $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id); 191 } 164 192 165 193 $bimage = $ipprc->filename("PPIMAGE.CHIP", $backup_path_base, $class_id); … … 261 289 &my_die("failed to restore chip mask file", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR); 262 290 } 263 } 291 } 264 292 265 293 -
trunk/ippTasks/destreak.pro
r27081 r27301 208 208 book getword magicToDS $pageName path_base -var PATH_BASE 209 209 book getword magicToDS $pageName cam_path_base -var CAM_PATH_BASE 210 book getword magicToDS $pageName cam_reduction -var CAM_REDUCTION 210 211 book getword magicToDS $pageName outroot -var OUTROOT 211 212 book getword magicToDS $pageName recoveryroot -var RECROOT … … 225 226 # TODO: do not add recoveryroot or replace if they are null or zero 226 227 227 $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --exp_id $EXP_ID --streaks $STREAKS --inv_streaks $INV_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 $REPLACE228 $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --exp_id $EXP_ID --streaks $STREAKS --inv_streaks $INV_STREAKS --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --uri $URI --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE 228 229 229 230 add_standard_args run … … 401 402 book getword magicDSToRevert $pageName path_base -var PATH_BASE 402 403 book getword magicDSToRevert $pageName cam_path_base -var CAM_PATH_BASE 404 book getword magicDSToRevert $pageName cam_reduction -var CAM_REDUCTION 403 405 book getword magicDSToRevert $pageName outroot -var OUTROOT 404 406 book getword magciDSToRevert $pageName bytes -var BYTES … … 419 421 end 420 422 421 $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE -- outroot $OUTROOT --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS423 $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS 422 424 423 425 add_standard_args run -
trunk/ippTools/share/magicdstool_todestreak_camera.sql
r25419 r27301 5 5 magicDSRun.label, 6 6 camera, 7 magicMask.uri asstreaks_uri,7 magicMask.uri AS streaks_uri, 8 8 CAST(NULL AS CHAR(255)) AS inv_streaks_uri, 9 9 stage, 10 10 stage_id, 11 'exposure' ascomponent,11 'exposure' AS component, 12 12 CAST(NULL AS CHAR(255)) AS uri, 13 13 camProcessedExp.path_base, 14 14 magicRun.inverse, 15 camProcessedExp.path_base as cam_path_base, 15 camProcessedExp.path_base AS cam_path_base, 16 camRun.reduction AS cam_reduction, 16 17 outroot, 17 18 recoveryroot, -
trunk/ippTools/share/magicdstool_todestreak_chip.sql
r25419 r27301 5 5 magicDSRun.label, 6 6 camera, 7 magicMask.uri asstreaks_uri,7 magicMask.uri AS streaks_uri, 8 8 CAST(NULL AS CHAR(255)) AS inv_streaks_uri, 9 9 stage, 10 10 stage_id, 11 class_id ascomponent,11 class_id AS component, 12 12 chipProcessedImfile.uri, 13 13 chipProcessedImfile.path_base, 14 14 magicRun.inverse, 15 camProcessedExp.path_base as cam_path_base, 15 camProcessedExp.path_base AS cam_path_base, 16 camRun.reduction AS cam_reduction, 16 17 outroot, 17 18 recoveryroot, … … 21 22 JOIN magicMask USING (magic_id) 22 23 JOIN magicRun USING(magic_id) 24 JOIN camRun USING(cam_id) 23 25 JOIN camProcessedExp USING(cam_id) 24 26 JOIN chipRun ON chip_id = stage_id -
trunk/ippTools/share/magicdstool_todestreak_diff.sql
r25419 r27301 6 6 magicDSRun.label, 7 7 rawExp.camera, 8 magicMask.uri asstreaks_uri,8 magicMask.uri AS streaks_uri, 9 9 CAST(NULL AS CHAR(255)) AS inv_streaks_uri, 10 10 stage, 11 magicRun.diff_id asstage_id,12 diffSkyfile.skycell_id ascomponent,11 magicRun.diff_id AS stage_id, 12 diffSkyfile.skycell_id AS component, 13 13 CAST(NULL AS CHAR(255)) AS uri, 14 14 diffSkyfile.path_base, 15 15 magicRun.inverse, 16 CAST(NULL AS CHAR(255)) as cam_path_base, 16 CAST(NULL AS CHAR(255)) AS cam_path_base, 17 CAST(NULL AS CHAR(255)) AS cam_reduction, 17 18 outroot, 18 19 recoveryroot, -
trunk/ippTools/share/magicdstool_todestreak_raw.sql
r25419 r27301 14 14 magicRun.inverse, 15 15 camProcessedExp.path_base as cam_path_base, 16 camRun.reduction AS cam_reduction, 16 17 outroot, 17 18 recoveryroot, … … 21 22 JOIN magicMask USING (magic_id) 22 23 JOIN magicRun USING (magic_id) 24 JOIN camRun USING(cam_id) 23 25 JOIN camProcessedExp USING(cam_id) 24 26 JOIN rawImfile ON magicRun.exp_id = rawImfile.exp_id -
trunk/ippTools/share/magicdstool_todestreak_warp.sql
r25419 r27301 14 14 magicRun.inverse, 15 15 CAST(NULL AS CHAR(255)) as cam_path_base, 16 CAST(NULL AS CHAR(255)) as cam_reduction, 16 17 outroot, 17 18 recoveryroot,
Note:
See TracChangeset
for help on using the changeset viewer.
