Changeset 35672 for trunk/ippTools/share
- Timestamp:
- Jun 18, 2013, 1:46:43 PM (13 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 3 edited
-
bgtool_advancechip.sql (modified) (1 diff)
-
bgtool_definewarp.sql (modified) (1 diff)
-
bgtool_tochip.sql (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/bgtool_advancechip.sql
r28486 r35672 3 3 chipBackgroundImfile.magicked 4 4 FROM chipBackgroundRun 5 JOIN chipProcessedImfile USING(chip_id) 6 LEFT JOIN chipBackgroundImfile USING(chip_bg_id, class_id) 5 JOIN camRun using(cam_id) 6 JOIN chipProcessedImfile ON chipBackgroundRun.chip_id = chipProcessedImfile.chip_id 7 JOIN chipRun AS bgsub_chipRun on camRun.chip_id = bgsub_chipRun.chip_id 8 JOIN chipProcessedImfile AS bgsub_chipProcessedImfile 9 ON (bgsub_chipRun.chip_id = bgsub_chipProcessedImfile.chip_id 10 AND bgsub_chipProcessedImfile.class_id = chipProcessedImfile.class_id) 11 LEFT JOIN chipBackgroundImfile 12 ON (chipBackgroundRun.chip_bg_id = chipBackgroundImfile.chip_bg_id 13 AND chipBackgroundImfile.class_id = chipProcessedImfile.class_id) 7 14 WHERE chipBackgroundRun.state = 'new' 8 15 AND chipProcessedImfile.quality = 0 9 16 AND chipProcessedImfile.fault = 0 17 AND bgsub_chipProcessedImfile.quality = 0 10 18 -- WHERE hook %s 11 GROUP BY chip _bg_id19 GROUP BY chipBackgroundRun.chip_bg_id 12 20 HAVING 13 21 COUNT(chipBackgroundImfile.class_id) = COUNT(chipProcessedImfile.class_id) -
trunk/ippTools/share/bgtool_definewarp.sql
r35154 r35672 15 15 JOIN chipBackgroundRun ON chipRun.chip_id = chipBackgroundRun.chip_id 16 16 AND (chipBackgroundRun.cam_id = camRun.cam_id OR chipBackgroundRun.cam_id = 0) 17 LEFT JOIN warpBackgroundRun ON chipBackgroundRun.chip_bg_id = warpBackgroundRun. warp_bg_id -- label hook %s17 LEFT JOIN warpBackgroundRun ON chipBackgroundRun.chip_bg_id = warpBackgroundRun.chip_bg_id -- label hook %s 18 18 WHERE chipBackgroundRun.state = 'full' 19 19 AND warpRun.state IN ('full', 'cleaned', 'goto_cleaned') -- need warp to have completed so warpSkyCellMap is populated -
trunk/ippTools/share/bgtool_tochip.sql
r35154 r35672 1 1 SELECT 2 2 chipBackgroundRun.*, 3 c lass_id,3 chipProcessedImfile.class_id, 4 4 rawExp.exp_tag, 5 5 rawExp.camera … … 8 8 JOIN rawExp USING(exp_id) 9 9 JOIN chipProcessedImfile USING(chip_id) 10 LEFT JOIN chipBackgroundImfile USING(chip_bg_id, class_id) 10 JOIN camRun using(cam_id) 11 JOIN chipRun AS bgsub_chipRun on camRun.chip_id = bgsub_chipRun.chip_id 12 JOIN chipProcessedImfile AS bgsub_chipProcessedImfile 13 ON (bgsub_chipRun.chip_id = bgsub_chipProcessedImfile.chip_id 14 AND bgsub_chipProcessedImfile.class_id = chipProcessedImfile.class_id) 15 LEFT JOIN chipBackgroundImfile 16 ON (chipBackgroundRun.chip_bg_id = chipBackgroundImfile.chip_bg_id 17 AND chipBackgroundImfile.class_id = chipProcessedImfile.class_id) 11 18 LEFT JOIN Label ON chipBackgroundRun.label = Label.label 12 19 WHERE chipBackgroundImfile.chip_bg_id IS NULL … … 14 21 AND chipProcessedImfile.fault = 0 15 22 AND chipProcessedImfile.quality = 0 23 AND bgsub_chipProcessedImfile.quality = 0 16 24 AND (Label.active OR Label.active IS NULL) 17 25 -- WHERE hook %s
Note:
See TracChangeset
for help on using the changeset viewer.
