Changeset 28536 for trunk/ippScripts/scripts
- Timestamp:
- Jun 28, 2010, 8:13:53 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/background_chip.pl (modified) (1 diff)
-
ippScripts/scripts/dist_advancerun.pl (modified) (3 diffs)
-
ippScripts/scripts/dist_bundle.pl (modified) (5 diffs)
-
ippScripts/scripts/dist_defineruns.pl (modified) (1 diff)
-
ippScripts/scripts/dist_make_fileset.pl (modified) (2 diffs)
-
ippScripts/scripts/magic_destreak.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap merged: 28498-28499,28503-28506,28534-28535
- Property svn:mergeinfo changed
-
trunk/ippScripts/scripts/background_chip.pl
r28486 r28536 144 144 my $out_image = $ipprc->filename("PPBACKGROUND.OUTPUT", $outroot, $class_id); 145 145 my $out_mask = $ipprc->filename("PPBACKGROUND.OUTPUT.MASK", $outroot, $class_id); 146 my $out_stats = $ipprc->filename("PP IMAGE.STATS", $outroot, $class_id);147 my $out_config = $ipprc->filename("PP IMAGE.CONFIG", $outroot, $class_id);146 my $out_stats = $ipprc->filename("PPBACKGROUND.STATS", $outroot, $class_id); 147 my $out_config = $ipprc->filename("PPBACKGROUND.CONFIG", $outroot, $class_id); 148 148 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id); 149 149 -
trunk/ippScripts/scripts/dist_advancerun.pl
r27718 r28536 66 66 my $difftool = can_run('difftool') or (warn "Can't find difftool" and $missing_tools = 1); 67 67 my $stacktool = can_run('stacktool') or (warn "Can't find stacktool" and $missing_tools = 1); 68 my $bgtool = can_run('bgtool') or (warn "Can't find bgtool" and $missing_tools = 1); 68 69 if ($missing_tools) { 69 70 &my_die("Can't find required tools.", $dist_id, $PS_EXIT_CONFIG_ERROR); … … 82 83 $tool_cmd = "$chiptool -chip_id"; 83 84 $list_mode = "-processedimfile"; 85 $component_key = "class_id"; 86 } elsif ($stage eq "chip_bg") { 87 $tool_cmd = "$bgtool -chip_bg_id"; 88 $list_mode = "-chip"; 84 89 $component_key = "class_id"; 85 90 } elsif ($stage eq "camera") { … … 94 99 $tool_cmd = "$warptool -warp_id"; 95 100 $list_mode = "-warped"; 101 $component_key = "skycell_id"; 102 } elsif ($stage eq "warp_bg") { 103 $tool_cmd = "$bgtool -warp_bg_id"; 104 $list_mode = "-warp"; 96 105 $component_key = "skycell_id"; 97 106 } elsif ($stage eq "stack") { -
trunk/ippScripts/scripts/dist_bundle.pl
r27718 r28536 35 35 'PPIMAGE.CHIP.MASK' => 'mask', 36 36 'PPIMAGE.CHIP.VARIANCE' => 'variance' ); 37 my %chip_bg_cleaned = ( 'PPBACKGROUND.OUTPUT' => 'image', 38 'PPBACKGROUND.OUTPUT.MASK' => 'mask' ); 37 39 my %camera_cleaned = ( 'PSASTRO.OUTPUT.MASK' => 'mask' ); 38 40 my %fake_cleaned; … … 40 42 'PSWARP.OUTPUT.MASK' => 'mask', 41 43 'PSWARP.OUTPUT.VARIANCE' => 'variance' ); 44 my %warp_bg_cleaned = ( 'PSWARP.OUTPUT' => 'image', 45 'PSWARP.OUTPUT.MASK' => 'mask' ); 42 46 my %diff_cleaned = ( 'PPSUB.OUTPUT' => 'image', 43 47 'PPSUB.OUTPUT.MASK' => 'mask', … … 246 250 my $fh = open_with_retries($mask_resolved); 247 251 close $fh; 248 } elsif ($stage eq "chip" ) {252 } elsif ($stage eq "chip" or $stage eq "chip_bg") { 249 253 $class_id = $component; 250 254 } … … 416 420 if ($stage eq "chip") { 417 421 $config_file_rule = "PPIMAGE.CONFIG"; 422 } elsif ($stage eq "chip") { 423 $config_file_rule = "PPBACKGROUND.CONFIG"; 418 424 } elsif ($stage eq "camera") { 419 425 $config_file_rule = "PSASTRO.CONFIG"; … … 422 428 return \@file_list; 423 429 } elsif ($stage eq "warp") { 430 $config_file_rule = "PSWARP.CONFIG"; 431 } elsif ($stage eq "warp_bg") { 424 432 $config_file_rule = "PSWARP.CONFIG"; 425 433 } elsif ($stage eq "diff") { -
trunk/ippScripts/scripts/dist_defineruns.pl
r27718 r28536 83 83 push @stages, $stage; 84 84 } else { 85 @stages = qw( raw chip c amera fake warpdiff stack SSdiff);85 @stages = qw( raw chip chip_bg camera fake warp warp_bg diff stack SSdiff); 86 86 } 87 87 -
trunk/ippScripts/scripts/dist_make_fileset.pl
r27718 r28536 239 239 } elsif ($stage eq 'chip') { 240 240 $query = "SELECT exp_name FROM chipRun JOIN rawExp USING(exp_id) WHERE chip_id = $stage_id"; 241 } elsif ($stage eq 'chip_bg') { 242 $query = "SELECT exp_name FROM chipBackgroundRun JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE chip_bg_id = $stage_id"; 241 243 } elsif ($stage eq 'camera') { 242 244 $query = "SELECT exp_name FROM camRun JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id)" … … 248 250 $query = "SELECT exp_name FROM warpRun JOIN fakeRun USING(fake_id) JOIN camRun USING(cam_id)" 249 251 . " JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE warp_id = $stage_id"; 252 } elsif ($stage eq 'warp_bg') { 253 $query = "SELECT exp_name FROM warpBackgroundRun JOIN warpRun USING(warp_id) JOIN fakeRun USING(fake_id) JOIN camRun USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE warp_bg_id = $stage_id"; 250 254 } else { 251 255 &my_die("$stage is invalid value for stage\n"); -
trunk/ippScripts/scripts/magic_destreak.pl
r27957 r28536 97 97 my ($skycell_args, $class_id, $skycell_id); 98 98 99 if (($stage eq "raw") or ($stage eq "chip") ) {99 if (($stage eq "raw") or ($stage eq "chip") or $stage eq "chip_bg") { 100 100 $class_id = $component; 101 101 $skycell_args = " -class_id $component"; 102 } elsif ($stage eq "warp" ) {102 } elsif ($stage eq "warp" or $stage eq "warp_bg") { 103 103 $skycell_id = $component; 104 104 $skycell_args = " -skycell_id $component"; … … 286 286 # $sources = $ipprc->filename("PSPHOT.OUT.CMF.SPL", $path_base); 287 287 288 } elsif ($stage eq "warp") { 288 } elsif ($stage eq "chip_bg") { 289 $image = $ipprc->filename("PPBACKGROUND.OUTPUT", $path_base, $class_id); 290 $mask = $ipprc->filename("PPBACKGROUND.OUTPUT.MASK", $path_base, $class_id); 291 $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base); 292 } elsif ($stage eq "warp" or $stage eq "warp_bg") { 289 293 $image = $ipprc->filename("PSWARP.OUTPUT", $path_base); 290 294 $mask = $ipprc->filename("PSWARP.OUTPUT.MASK", $path_base);
Note:
See TracChangeset
for help on using the changeset viewer.
