- Timestamp:
- Jun 28, 2010, 8:13:53 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
- 4 copied
-
. (modified) (1 prop)
-
Ohana (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)
-
ippTools/share/Makefile.am (modified) (3 diffs)
-
ippTools/share/disttool_definebyquery_chip_bg.sql (copied) (copied from branches/pap/ippTools/share/disttool_definebyquery_chip_bg.sql )
-
ippTools/share/disttool_definebyquery_warp_bg.sql (copied) (copied from branches/pap/ippTools/share/disttool_definebyquery_warp_bg.sql )
-
ippTools/share/magicdstool_definebyquery_chip_bg.sql (copied) (copied from branches/pap/ippTools/share/magicdstool_definebyquery_chip_bg.sql )
-
ippTools/share/magicdstool_definebyquery_warp_bg.sql (copied) (copied from branches/pap/ippTools/share/magicdstool_definebyquery_warp_bg.sql )
-
ippTools/src/disttool.c (modified) (2 diffs)
-
ippTools/src/magicdstool.c (modified) (7 diffs)
-
ippTools/src/magicdstoolConfig.c (modified) (1 diff)
-
ippconfig/recipes (modified) (1 prop)
-
ippconfig/recipes/filerules-mef.mdc (modified) (1 diff)
-
ippconfig/recipes/filerules-simple.mdc (modified) (1 diff)
-
ippconfig/recipes/filerules-split.mdc (modified) (1 diff)
-
psModules (modified) (1 prop)
-
psModules/src/extras/ippStages.c (modified) (1 diff)
-
psModules/src/extras/ippStages.h (modified) (1 diff)
-
psphot (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap merged: 28498-28499,28503-28506,28534-28535
- Property svn:mergeinfo changed
-
trunk/Ohana
- Property svn:mergeinfo changed
/branches/pap/Ohana merged: 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); -
trunk/ippTools/share/Makefile.am
r28486 r28536 145 145 disttool_definebyquery_camera.sql \ 146 146 disttool_definebyquery_chip.sql \ 147 disttool_definebyquery_chip_bg.sql \ 147 148 disttool_definebyquery_diff.sql \ 148 149 disttool_definebyquery_fake.sql \ … … 150 151 disttool_definebyquery_stack.sql \ 151 152 disttool_definebyquery_warp.sql \ 153 disttool_definebyquery_warp_bg.sql \ 152 154 disttool_definebyquery_SSdiff.sql \ 153 155 disttool_defineinterest.sql \ … … 228 230 magicdstool_definebyquery_raw.sql \ 229 231 magicdstool_definebyquery_chip.sql \ 232 magicdstool_definebyquery_chip_bg.sql \ 230 233 magicdstool_definebyquery_camera.sql \ 231 234 magicdstool_definebyquery_warp.sql \ 235 magicdstool_definebyquery_warp_bg.sql \ 232 236 magicdstool_definebyquery_diff.sql \ 233 237 magicdstool_definecopy_chip.sql \ -
trunk/ippTools/src/disttool.c
r28270 r28536 210 210 psStringAppend(&query, " AND (chipRun.dist_group = '%s')", dist_group); 211 211 } 212 } else if (!strcmp(stage, "chip_bg")) { 213 magicRunType = "chipBackgroundRun"; 214 runJoinStr = "chipBackgroundRun.chip_bg_id"; 215 query = pxDataGet("disttool_definebyquery_chip_bg.sql"); 216 if (!query) { 217 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 218 psFree(where); 219 return false; 220 } 221 222 if (label) { 223 psStringAppend(&query, " AND (chipBackgroundRun.label = '%s')", label); 224 } 225 if (dist_group) { 226 psStringAppend(&query, " AND (chipBackgroundRun.dist_group = '%s')", dist_group); 227 } 212 228 } else if (!strcmp(stage, "camera")) { 213 229 magicRunType = "camRun"; // This is used below to set the magicked business … … 258 274 if (dist_group) { 259 275 psStringAppend(&query, " AND (warpRun.dist_group = '%s')", dist_group); 276 } 277 278 } else if (!strcmp(stage, "warp_bg")) { 279 magicRunType = "warpBackgroundRun"; 280 runJoinStr = "warpBackgroundRun.warp_bg_id"; 281 query = pxDataGet("disttool_definebyquery_warp_bg.sql"); 282 if (!query) { 283 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 284 psFree(where); 285 return false; 286 } 287 288 if (label) { 289 psStringAppend(&query, " AND (warpBackgroundRun.label = '%s')", label); 290 } 291 if (dist_group) { 292 psStringAppend(&query, " AND (warpBackgroundRun.dist_group = '%s')", dist_group); 260 293 } 261 294 -
trunk/ippTools/src/magicdstool.c
r27786 r28536 122 122 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 123 123 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 124 PXOPT_COPY_S64(config->args, where, "-chip_bg_id", "chip_bg_id", "=="); 124 125 PXOPT_COPY_S64(config->args, where, "-cam_id", "cam_id", "=="); 125 126 PXOPT_COPY_S64(config->args, where, "-warp_id", "warp_id", "=="); 127 PXOPT_COPY_S64(config->args, where, "-warp_bg_id", "warp_bg_id", "=="); 126 128 PXOPT_COPY_S64(config->args, where, "-diff_id", "diff_id", "=="); 127 129 PXOPT_COPY_S64(config->args, where, "-magic_id","magicRun.magic_id", "=="); … … 140 142 query = pxDataGet("magicdstool_definebyquery_chip.sql"); 141 143 break; 144 case IPP_STAGE_CHIP_BG: 145 query = pxDataGet("magicdstool_definebyquery_chip_bg.sql"); 146 break; 142 147 case IPP_STAGE_CAMERA: 143 148 query = pxDataGet("magicdstool_definebyquery_camera.sql"); … … 145 150 case IPP_STAGE_WARP: 146 151 query = pxDataGet("magicdstool_definebyquery_warp.sql"); 152 break; 153 case IPP_STAGE_WARP_BG: 154 query = pxDataGet("magicdstool_definebyquery_warp_bg.sql"); 147 155 break; 148 156 case IPP_STAGE_DIFF: … … 720 728 query = "UPDATE chipProcessedImfile SET magicked = %" PRId64 " where chip_id = %" PRId64 " AND class_id = '%s'"; 721 729 break; 730 case IPP_STAGE_CHIP_BG: 731 query = "UPDATE chipBackgroundImfile SET magicked = %" PRId64 " where chip_bg_id = %" PRId64 " AND class_id = '%s'"; 732 break; 722 733 case IPP_STAGE_CAMERA: 723 734 // no there is no magicked column in camProcessedExp so we have nothing to do … … 727 738 query = "UPDATE warpSkyfile SET magicked = %" PRId64 " where warp_id = %" PRId64 " AND skycell_id = '%s'"; 728 739 break; 740 case IPP_STAGE_WARP_BG: 741 query = "UPDATE warpBackgroundSkyfile SET magicked = %" PRId64 " where warp_bg_id = %" PRId64 " AND skycell_id = '%s'"; 742 break; 729 743 case IPP_STAGE_DIFF: 730 744 query = "UPDATE diffSkyfile SET magicked = %" PRId64 " where diff_id = %" PRId64 " AND skycell_id = '%s'"; … … 794 808 query = "UPDATE chipRun SET magicked = %" PRId64 " where chip_id = %" PRId64; 795 809 break; 810 case IPP_STAGE_CHIP_BG: 811 query = "UPDATE chipBackgroundRun SET magicked = %" PRId64 " where chip_bg_id = %" PRId64; 812 break; 796 813 case IPP_STAGE_CAMERA: 797 814 query = "UPDATE camRun SET magicked = %" PRId64 " where cam_id = %" PRId64; … … 799 816 case IPP_STAGE_WARP: 800 817 query = "UPDATE warpRun SET magicked = %" PRId64 " where warp_id = %" PRId64; 818 break; 819 case IPP_STAGE_WARP_BG: 820 query = "UPDATE warpBackgroundRun SET magicked = %" PRId64 " where warp_bg_id = %" PRId64; 801 821 break; 802 822 case IPP_STAGE_DIFF: -
trunk/ippTools/src/magicdstoolConfig.c
r27452 r28536 60 60 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-exp_id", 0, "search by exp_id", 0); 61 61 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-chip_id", 0, "search by chip_id", 0); 62 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-chip_bg_id", 0, "search by chip_bg_id", 0); 62 63 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-cam_id", 0, "search by cam_id", 0); 63 64 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-warp_id", 0, "search by warp_id", 0); 65 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-warp_bg_id", 0, "search by warp_bg_id", 0); 64 66 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-diff_id", 0, "search by diff_id", 0); 65 67 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-magic_id", 0, "search by magic_id", 0); -
trunk/ippconfig/recipes
- Property svn:mergeinfo changed
/branches/pap/ippconfig/recipes merged: 28504,28535
- Property svn:mergeinfo changed
-
trunk/ippconfig/recipes/filerules-mef.mdc
r28375 r28536 338 338 PPBACKGROUND.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}.fits IMAGE COMP_IMG CHIP TRUE NONE 339 339 PPBACKGROUND.OUTPUT.MASK OUTPUT {OUTPUT}.{CHIP.NAME}.mk.fits MASK COMP_MASK CHIP TRUE NONE 340 PPBACKGROUND.CONFIG OUTPUT {OUTPUT}.{CHIP.NAME}.ppBackground.mdc TEXT NONE CHIP TRUE NONE 341 PPIMAGE.STATS OUTPUT {OUTPUT}.{CHIP.NAME}.stats STATS NONE CHIP TRUE NONE -
trunk/ippconfig/recipes/filerules-simple.mdc
r28375 r28536 303 303 PPBACKGROUND.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}.fits IMAGE NONE FPA TRUE NONE 304 304 PPBACKGROUND.OUTPUT.MASK OUTPUT {OUTPUT}.{CHIP.NAME}.mk.fits MASK NONE FPA TRUE NONE 305 PPBACKGROUND.CONFIG OUTPUT {OUTPUT}.{CHIP.NAME}.ppBackground.mdc TEXT NONE CHIP TRUE NONE 306 PPIMAGE.STATS OUTPUT {OUTPUT}.{CHIP.NAME}.stats STATS NONE CHIP TRUE NONE -
trunk/ippconfig/recipes/filerules-split.mdc
r28390 r28536 328 328 PPBACKGROUND.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}.fits IMAGE COMP_IMG CHIP TRUE NONE 329 329 PPBACKGROUND.OUTPUT.MASK OUTPUT {OUTPUT}.{CHIP.NAME}.mk.fits MASK COMP_MASK CHIP TRUE NONE 330 PPBACKGROUND.CONFIG OUTPUT {OUTPUT}.{CHIP.NAME}.ppBackground.mdc TEXT NONE CHIP TRUE NONE 331 PPIMAGE.STATS OUTPUT {OUTPUT}.{CHIP.NAME}.stats STATS NONE CHIP TRUE NONE 332 330 333 331 334 # FILERULE naming operators: -
trunk/psModules
- Property svn:mergeinfo changed
/branches/pap/psModules merged: 28499,28534-28535
- Property svn:mergeinfo changed
-
trunk/psModules/src/extras/ippStages.c
r24881 r28536 15 15 } else if (!strcmp(stageString, "chip")) { 16 16 return IPP_STAGE_CHIP; 17 } else if (!strcmp(stageString, "chip_bg")) { 18 return IPP_STAGE_CHIP_BG; 17 19 } else if (!strcmp(stageString, "camera")) { 18 20 return IPP_STAGE_CAMERA; 19 21 } else if (!strcmp(stageString, "warp")) { 20 22 return IPP_STAGE_WARP; 23 } else if (!strcmp(stageString, "warp_bg")) { 24 return IPP_STAGE_WARP_BG; 21 25 } else if (!strcmp(stageString, "fake")) { 22 26 return IPP_STAGE_FAKE; -
trunk/psModules/src/extras/ippStages.h
r27750 r28536 13 13 IPP_STAGE_RAW = 0, 14 14 IPP_STAGE_CHIP, 15 IPP_STAGE_CHIP_BG, 15 16 IPP_STAGE_CAMERA, 16 17 IPP_STAGE_FAKE, 17 18 IPP_STAGE_WARP, 19 IPP_STAGE_WARP_BG, 18 20 IPP_STAGE_DIFF, 19 21 IPP_STAGE_STACK, -
trunk/psphot
- Property svn:mergeinfo changed
/branches/pap/psphot merged: 28534-28535
- Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
