Changeset 28499
- Timestamp:
- Jun 24, 2010, 10:11:53 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 added
- 6 edited
-
ippScripts/scripts/magic_destreak.pl (modified) (2 diffs)
-
ippTools/share/Makefile.am (modified) (1 diff)
-
ippTools/share/magicdstool_definebyquery_chip_bg.sql (added)
-
ippTools/share/magicdstool_definebyquery_warp_bg.sql (added)
-
ippTools/src/magicdstool.c (modified) (7 diffs)
-
ippTools/src/magicdstoolConfig.c (modified) (1 diff)
-
psModules/src/extras/ippStages.c (modified) (1 diff)
-
psModules/src/extras/ippStages.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ippScripts/scripts/magic_destreak.pl
r27957 r28499 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); -
branches/pap/ippTools/share/Makefile.am
r28486 r28499 228 228 magicdstool_definebyquery_raw.sql \ 229 229 magicdstool_definebyquery_chip.sql \ 230 magicdstool_definebyquery_chip_bg.sql \ 230 231 magicdstool_definebyquery_camera.sql \ 231 232 magicdstool_definebyquery_warp.sql \ 233 magicdstool_definebyquery_warp_bg.sql \ 232 234 magicdstool_definebyquery_diff.sql \ 233 235 magicdstool_definecopy_chip.sql \ -
branches/pap/ippTools/src/magicdstool.c
r27786 r28499 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: -
branches/pap/ippTools/src/magicdstoolConfig.c
r27452 r28499 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); -
branches/pap/psModules/src/extras/ippStages.c
r24881 r28499 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; -
branches/pap/psModules/src/extras/ippStages.h
r27750 r28499 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,
Note:
See TracChangeset
for help on using the changeset viewer.
