Changeset 23737
- Timestamp:
- Apr 7, 2009, 4:19:58 PM (17 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 4 added
- 3 edited
-
Makefile.am (modified) (4 diffs)
-
camtool_export_processed_exp.sql (added)
-
camtool_export_run.sql (added)
-
disttool_pendingcomponent.sql (modified) (1 diff)
-
disttool_toadvance.sql (modified) (7 diffs)
-
faketool_export_processed_imfile.sql (added)
-
faketool_export_run.sql (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/Makefile.am
r23701 r23737 1 1 dist_pkgdata_DATA = \ 2 2 camtool_donecleanup.sql \ 3 camtool_export_processed_exp.sql \ 4 camtool_export_run.sql \ 3 5 camtool_find_chip_id.sql \ 4 6 camtool_find_pendingexp.sql \ … … 21 23 chiptool_revertprocessedimfile.sql \ 22 24 chiptool_run.sql \ 23 chiptool_export_run.sql \24 25 chiptool_export_imfile.sql \ 25 26 chiptool_export_processed_imfile.sql \ 27 chiptool_export_run.sql \ 26 28 chiptool_unmasked.sql \ 27 29 detselect_search.sql \ … … 96 98 faketool_completely_processed_exp.sql \ 97 99 faketool_donecleanup.sql \ 100 faketool_export_processed_imfile.sql \ 101 faketool_export_run.sql \ 98 102 faketool_find_camrun.sql \ 99 103 faketool_find_pendingexp.sql \ … … 179 183 warptool_donecleanup.sql \ 180 184 warptool_exp.sql \ 185 warptool_export_imfile.sql \ 181 186 warptool_export_run.sql \ 182 warptool_export_imfile.sql \183 187 warptool_export_skyfile.sql \ 184 188 warptool_export_skycell_map.sql \ -
trunk/ippTools/share/disttool_pendingcomponent.sql
r23722 r23737 84 84 stage, 85 85 stage_id, 86 chipProcessedImfile.class_id AS component, 86 'exposure' AS component, 87 -- chipProcessedImfile.class_id AS component, 87 88 clean, 88 89 rawExp.camera, 89 90 outroot, 90 91 camProcessedExp.path_base, 91 chipProcessedImfile.path_baseas chip_path_base,92 NULL as chip_path_base, 92 93 camRun.state, 93 94 NULL, 94 95 camProcessedExp.quality, 95 96 distRun.no_magic, 96 chip ProcessedImfile.magicked97 chipRun.magicked 97 98 FROM distRun 98 99 JOIN camRun ON camRun.cam_id = distRun.stage_id 99 100 JOIN camProcessedExp USING(cam_id) 100 101 JOIN chipRun USING(chip_id) 101 JOIN chipProcessedImfile USING(exp_id, chip_id)102 JOIN rawExp using(exp_id) 103 LEFT JOIN distComponent 104 ON distRun.dist_id = distComponent.dist_id 105 AND chipProcessedImfile.class_id = distComponent.component102 -- JOIN chipProcessedImfile USING(exp_id, chip_id) 103 JOIN rawExp using(exp_id) 104 LEFT JOIN distComponent 105 ON distRun.dist_id = distComponent.dist_id 106 -- AND chipProcessedImfile.class_id = distComponent.component 106 107 WHERE 107 108 distRun.state = 'new' -
trunk/ippTools/share/disttool_toadvance.sql
r23717 r23737 4 4 stage_id, 5 5 outroot, 6 label 6 label, 7 clean 7 8 FROM 8 9 ( … … 13 14 stage_id, 14 15 outroot, 15 label 16 label, 17 clean 16 18 FROM distRun 17 19 JOIN rawImfile ON stage_id = rawImfile.exp_id … … 36 38 stage_id, 37 39 outroot, 38 label 40 label, 41 clean 39 42 FROM distRun 40 43 JOIN chipProcessedImfile ON stage_id = chipProcessedImfile.chip_id … … 53 56 AND SUM(distComponent.fault) = 0 54 57 UNION 58 -- camera stage 59 SELECT distRun.dist_id, 60 stage, 61 stage_id, 62 outroot, 63 distRun.label, 64 clean 65 FROM distRun 66 JOIN camRun ON stage_id = cam_id 67 JOIN chipRun USING(chip_id) 68 LEFT JOIN distComponent USING(dist_id) 69 WHERE 70 distRun.state = 'new' 71 AND distRun.fault = 0 72 AND distComponent.fault = 0 73 AND distRun.stage = 'camera' 74 -- AND ((chipRun.magicked AND camRun.state = 'full') OR distRun.no_magic) 75 -- AND (camRun.state = 'full' OR (distRun.clean and camRun.state = 'cleaned')) 76 UNION 77 -- fake stage 78 SELECT 79 distRun.dist_id, 80 stage, 81 stage_id, 82 outroot, 83 label, 84 clean 85 FROM distRun 86 JOIN fakeProcessedImfile ON stage_id = fakeProcessedImfile.fake_id 87 LEFT JOIN distComponent 88 ON distComponent.dist_id = distRun.dist_id 89 AND distComponent.component = fakeProcessedImfile.class_id 90 WHERE 91 distRun.state = 'new' 92 AND distRun.fault = 0 93 AND distRun.stage = 'fake' 94 GROUP BY 95 dist_id, 96 fakeProcessedImfile.fake_id 97 HAVING 98 COUNT(fakeProcessedImfile.class_id) = COUNT(distComponent.component) 99 AND SUM(distComponent.fault) = 0 100 UNION 55 101 -- warp stage 56 102 SELECT … … 59 105 stage_id, 60 106 outroot, 61 label 107 label, 108 clean 62 109 FROM distRun 63 110 JOIN warpSkyfile on stage_id = warp_id … … 84 131 stage_id, 85 132 outroot, 86 label 133 label, 134 clean 87 135 FROM distRun 88 136 JOIN diffSkyfile … … 109 157 stage_id, 110 158 outroot, 111 label 159 label, 160 clean 112 161 FROM distRun 113 162 JOIN stackSumSkyfile on stage_id = stack_id
Note:
See TracChangeset
for help on using the changeset viewer.
