Changeset 14023 for trunk/ippTools/share
- Timestamp:
- Jul 5, 2007, 3:16:08 PM (19 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 1 deleted
- 20 edited
-
Makefile.am (modified) (1 diff)
-
camtool_find_pendingexp.sql (modified) (2 diffs)
-
camtool_find_pendingimfile.sql (modified) (3 diffs)
-
camtool_find_processedexp.sql (modified) (2 diffs)
-
chiptool_completely_processed_exp.sql (modified) (2 diffs)
-
chiptool_find_rawexp.sql (modified) (1 diff)
-
chiptool_pendingimfile.sql (modified) (3 diffs)
-
chiptool_processedimfile.sql (modified) (2 diffs)
-
chiptool_queuerawimfile.sql (modified) (1 diff)
-
dettool_find_completed_runs.sql (modified) (3 diffs)
-
difftool_inputskyfile.sql (modified) (1 diff)
-
regtool_find_unprocessed_exp.sql (modified) (1 diff)
-
regtool_find_unprocessed_imfile.sql (deleted)
-
regtool_pendingexp.sql (modified) (1 diff)
-
regtool_pendingimfile.sql (modified) (1 diff)
-
regtool_processedexp.sql (modified) ( previous)
-
regtool_processedimfile.sql (modified) (1 diff)
-
stacktool_inputskyfile.sql (modified) (1 diff)
-
warptool_imfile.sql (modified) (1 diff)
-
warptool_tooverlap.sql (modified) (1 diff)
-
warptool_towarped.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/Makefile.am
r12581 r14023 9 9 chiptool_pendingimfile.sql \ 10 10 chiptool_processedimfile.sql \ 11 chiptool_queuerawexp.sql \12 11 chiptool_queuerawimfile.sql \ 13 12 detselect_search.sql \ -
trunk/ippTools/share/camtool_find_pendingexp.sql
r14018 r14023 4 4 SELECT 5 5 camRun.*, 6 rawExp.exp_tag,7 6 rawExp.exp_id, 7 rawExp.exp_name, 8 8 rawExp.camera, 9 9 rawExp.telescope, … … 15 15 USING(chip_id) 16 16 JOIN rawExp 17 ON chipProcessedImfile.exp_ tag = rawExp.exp_tag17 ON chipProcessedImfile.exp_id = rawExp.exp_id 18 18 LEFT JOIN camProcessedExp 19 19 ON camRun.cam_id = camProcessedExp.cam_id -
trunk/ippTools/share/camtool_find_pendingimfile.sql
r12259 r14023 4 4 (SELECT 5 5 camPendingExp.*, 6 chipProcessedExp.exp_ tag,6 chipProcessedExp.exp_id, 7 7 chipProcessedExp.guide_id, 8 8 chipProcessedImfile.class_id, … … 12 12 chipProcessedImfile.bg_mean_stdev, 13 13 chipProcessedImfile.path_base, 14 rawExp.exp_ id,14 rawExp.exp_name, 15 15 rawExp.camera, 16 16 rawExp.telescope, … … 22 22 USING(chip_id) 23 23 JOIN rawExp 24 ON chipProcessedExp.exp_ tag = rawExp.exp_tag24 ON chipProcessedExp.exp_id = rawExp.exp_id 25 25 LEFT JOIN camProcessedExp 26 26 ON camPendingExp.cam_id = camProcessedExp.cam_id -
trunk/ippTools/share/camtool_find_processedexp.sql
r12736 r14023 1 1 SELECT 2 2 camProcessedExp.*, 3 rawExp.exp_ id,3 rawExp.exp_name, 4 4 rawExp.camera, 5 5 rawExp.telescope, … … 9 9 USING(chip_id) 10 10 JOIN rawExp 11 ON chipProcessedExp.exp_ tag = rawExp.exp_tag11 ON chipProcessedExp.exp_id = rawExp.exp_id 12 12 WHERE -- bogus condition so there is a pre-existing where to append to 13 13 camProcessedExp.cam_id IS NOT NULL -
trunk/ippTools/share/chiptool_completely_processed_exp.sql
r14018 r14023 18 18 USING(chip_id) 19 19 JOIN rawExp 20 ON chipInputImfile.exp_ tag = rawExp.exp_tag20 ON chipInputImfile.exp_id = rawExp.exp_id 21 21 JOIN chipProcessedImfile 22 22 ON chipInputImfile.chip_id = chipProcessedImfile.chip_id 23 AND chipInputImfile.exp_ tag = chipProcessedImfile.exp_tag23 AND chipInputImfile.exp_id = chipProcessedImfile.exp_id 24 24 AND chipInputImfile.class_id = chipProcessedImfile.class_id 25 25 WHERE … … 28 28 GROUP BY 29 29 chipInputImfile.chip_id, 30 chipInputImfile.exp_ tag30 chipInputImfile.exp_id 31 31 HAVING rawExp.imfiles = COUNT(chipProcessedImfile.class_id)) as Foo -
trunk/ippTools/share/chiptool_find_rawexp.sql
r12184 r14023 2 2 -- processeing 3 3 SELECT 4 exp_ tag4 exp_id 5 5 FROM rawExp 6 6 WHERE -
trunk/ippTools/share/chiptool_pendingimfile.sql
r14018 r14023 1 1 SELECT 2 2 chipRun.*, 3 chipInputImfile.exp_ tag,3 chipInputImfile.exp_id, 4 4 chipInputImfile.class_id, 5 5 rawImfile.uri, 6 rawExp.exp_ id,6 rawExp.exp_name, 7 7 rawExp.camera, 8 8 rawExp.telescope, … … 13 13 LEFT JOIN chipProcessedImfile 14 14 ON chipInputImfile.chip_id = chipProcessedImfile.chip_id 15 AND chipInputImfile.exp_ tag = chipProcessedImfile.exp_tag15 AND chipInputImfile.exp_id = chipProcessedImfile.exp_id 16 16 AND chipInputImfile.class_id = chipProcessedImfile.class_id 17 17 JOIN rawImfile 18 ON chipInputImfile.exp_ tag = rawImfile.exp_tag18 ON chipInputImfile.exp_id = rawImfile.exp_id 19 19 AND chipInputImfile.class_id = rawImfile.class_id 20 20 JOIN rawExp 21 ON rawImfile.exp_ tag = rawExp.exp_tag21 ON rawImfile.exp_id = rawExp.exp_id 22 22 LEFT JOIN chipMask 23 23 ON chipRun.label = chipMask.label … … 25 25 chipRun.state = 'run' 26 26 AND chipProcessedImfile.chip_id IS NULL 27 AND chipProcessedImfile.exp_ tagIS NULL27 AND chipProcessedImfile.exp_id IS NULL 28 28 AND chipProcessedImfile.class_id IS NULL 29 29 AND chipMask.label IS NULL -
trunk/ippTools/share/chiptool_processedimfile.sql
r12259 r14023 7 7 chipProcessedImfile.bg_mean_stdev, 8 8 chipProcessedImfile.path_base, 9 rawExp.exp_ id,9 rawExp.exp_name, 10 10 rawExp.camera, 11 11 rawExp.telescope, … … 15 15 USING(chip_id) 16 16 JOIN rawExp 17 ON chipProcessedExp.exp_ tag = rawExp.exp_tag17 ON chipProcessedExp.exp_id = rawExp.exp_id 18 18 WHERE 19 19 -- bogus test; just here so there there is a 'WHERE' stmt to append conditionals too 20 chipProcessedImfile.exp_ tagis NOT NULL20 chipProcessedImfile.exp_id is NOT NULL 21 21 -
trunk/ippTools/share/chiptool_queuerawimfile.sql
r14018 r14023 2 2 SELECT 3 3 LAST_INSERT_ID(), 4 rawImfile.exp_ tag,4 rawImfile.exp_id, 5 5 rawImfile.class_id 6 6 FROM rawImfile 7 7 JOIN newExp 8 USING(exp_ tag)8 USING(exp_id) 9 9 WHERE 10 10 rawImfile.fault = 0 11 11 AND newExp.state = 'stop' 12 AND rawImfile.exp_ tag= '%s'12 AND rawImfile.exp_id = '%s' 13 13 -
trunk/ippTools/share/dettool_find_completed_runs.sql
r12424 r14023 6 6 detRun.det_id, 7 7 detRun.iteration, 8 detInputExp.exp_ tag8 detInputExp.exp_id 9 9 FROM detRun 10 10 LEFT JOIN detInputExp … … 12 12 AND detRun.iteration = detInputExp.iteration 13 13 LEFT JOIN rawExp 14 ON detInputExp.exp_ tag = rawExp.exp_tag14 ON detInputExp.exp_id = rawExp.exp_id 15 15 LEFT JOIN detResidExp 16 16 ON detRun.det_id = detResidExp.det_id 17 17 AND detRun.iteration = detResidExp.iteration 18 AND detInputExp.exp_ tag = detResidExp.exp_tag18 AND detInputExp.exp_id = detResidExp.exp_id 19 19 WHERE 20 20 detRun.state = 'run' … … 23 23 detRun.iteration 24 24 HAVING 25 COUNT(detResidExp.exp_ tag) = COUNT(detInputExp.exp_tag)25 COUNT(detResidExp.exp_id) = COUNT(detInputExp.exp_id) 26 26 ) AS residdetrun -
trunk/ippTools/share/difftool_inputskyfile.sql
r12312 r14023 17 17 ON camProcessedExp.chip_id = chipProcessedExp.chip_id 18 18 JOIN rawExp 19 ON chipProcessedExp.exp_ tag = rawExp.exp_tag19 ON chipProcessedExp.exp_id = rawExp.exp_id 20 20 WHERE 21 21 diffRun.state = 'run' -
trunk/ippTools/share/regtool_find_unprocessed_exp.sql
r14018 r14023 4 4 FROM newExp 5 5 JOIN newImfile 6 USING(exp_ tag)6 USING(exp_id) 7 7 LEFT JOIN rawExp 8 USING(exp_ tag)8 USING(exp_id) 9 9 WHERE 10 10 newExp.state = 'run' 11 AND rawExp.exp_ tagIS NULL11 AND rawExp.exp_id IS NULL 12 12 AND newExp.imfiles = 13 (SELECT COUNT(exp_ tag) FROM rawImfile14 WHERE rawImfile.exp_ tag = newExp.exp_tag)) as Foo13 (SELECT COUNT(exp_id) FROM rawImfile 14 WHERE rawImfile.exp_id = newExp.exp_id)) as Foo 15 15 WHERE 16 exp_ tag= '%s'16 exp_id = '%s' -
trunk/ippTools/share/regtool_pendingexp.sql
r14018 r14023 3 3 FROM newExp 4 4 JOIN newImfile 5 USING(exp_ tag)5 USING(exp_id) 6 6 LEFT JOIN rawExp 7 USING(exp_ tag)7 USING(exp_id) 8 8 WHERE 9 9 newExp.state = 'run' 10 AND rawExp.exp_ tagIS NULL10 AND rawExp.exp_id IS NULL 11 11 AND newExp.imfiles = 12 (SELECT COUNT(exp_ tag) FROM rawImfile12 (SELECT COUNT(exp_id) FROM rawImfile 13 13 WHERE 14 rawImfile.exp_ tag = newExp.exp_tag14 rawImfile.exp_id = newExp.exp_id 15 15 AND rawImfile.fault = 0) -
trunk/ippTools/share/regtool_pendingimfile.sql
r12086 r14023 1 SELECT 2 newImfile.*, 3 newExp.workdir 4 FROM newImfile 5 LEFT JOIN newExp 6 USING(exp_tag) 7 LEFT JOIN rawExp 8 USING(exp_tag) 9 WHERE 10 newExp.exp_tag is NOT NULL 11 AND rawExp.exp_tag IS NULL 1 SELECT DISTINCT * FROM 2 (SELECT 3 newExp.exp_id, 4 newExp.tmp_exp_name, 5 newExp.tmp_camera, 6 newExp.tmp_telescope, 7 newExp.workdir, 8 newImfile.tmp_class_id, 9 newImfile.uri 10 FROM newImfile 11 JOIN newExp 12 USING(exp_id) 13 LEFT JOIN rawImfile 14 ON newExp.exp_id = rawImfile.exp_id 15 AND newImfile.tmp_class_id = rawImfile.tmp_class_id 16 WHERE 17 newExp.state = 'run' 18 AND rawImfile.tmp_class_id IS NULL) as Foo -
trunk/ippTools/share/regtool_processedimfile.sql
r12347 r14023 1 1 SELECT 2 2 rawImfile.*, 3 newExp.exp_ id,3 newExp.exp_name, 4 4 newExp.camera, 5 5 newExp.telescope 6 6 FROM rawImfile 7 7 JOIN newExp 8 USING(exp_ tag)8 USING(exp_id) 9 9 -- bogus conditional so there is a where clause to append to 10 WHERE rawImfile.exp_ tagis NOT NULL10 WHERE rawImfile.exp_id is NOT NULL -
trunk/ippTools/share/stacktool_inputskyfile.sql
r12419 r14023 16 16 ON camProcessedExp.chip_id = chipProcessedExp.chip_id 17 17 JOIN rawExp 18 ON chipProcessedExp.exp_ tag = rawExp.exp_tag18 ON chipProcessedExp.exp_id = rawExp.exp_id 19 19 WHERE 20 20 stackRun.state = 'run' -
trunk/ippTools/share/warptool_imfile.sql
r13827 r14023 14 14 ON camProcessedExp.chip_id = chipProcessedImfile.chip_id 15 15 JOIN rawImfile -- is there any reason not to refer back to rawimfiles? 16 ON chipProcessedExp.exp_ tag = rawImfile.exp_tag16 ON chipProcessedExp.exp_id = rawImfile.exp_id 17 17 WHERE 18 18 warpRun.state = 'run' -
trunk/ippTools/share/warptool_tooverlap.sql
r12237 r14023 12 12 ON camProcessedExp.chip_id = chipProcessedExp.chip_id 13 13 JOIN rawExp 14 ON chipProcessedExp.exp_ tag = rawExp.exp_tag14 ON chipProcessedExp.exp_id = rawExp.exp_id 15 15 LEFT JOIN warpSkyCellMap 16 16 ON warpInputExp.warp_id = warpSkyCellMap.warp_id -
trunk/ippTools/share/warptool_towarped.sql
r13088 r14023 14 14 ON camProcessedExp.chip_id = chipProcessedExp.chip_id 15 15 JOIN rawExp 16 ON chipProcessedExp.exp_ tag = rawExp.exp_tag16 ON chipProcessedExp.exp_id = rawExp.exp_id 17 17 LEFT JOIN warpSkyfile 18 18 ON warpRun.warp_id = warpSkyfile.warp_id
Note:
See TracChangeset
for help on using the changeset viewer.
