Changeset 30586 for branches/czw_branch/20101203/ippTools/share
- Timestamp:
- Feb 11, 2011, 4:29:48 PM (15 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 22 edited
- 3 copied
-
. (modified) (1 prop)
-
ippTools/share/Makefile.am (modified) (2 diffs)
-
ippTools/share/disttool_pending_SSdiff.sql (modified) (3 diffs)
-
ippTools/share/disttool_pending_camera.sql (modified) (2 diffs)
-
ippTools/share/disttool_pending_chip.sql (modified) (3 diffs)
-
ippTools/share/disttool_pending_chip_bg.sql (modified) (3 diffs)
-
ippTools/share/disttool_pending_diff.sql (modified) (3 diffs)
-
ippTools/share/disttool_pending_fake.sql (modified) (2 diffs)
-
ippTools/share/disttool_pending_raw.sql (modified) (9 diffs)
-
ippTools/share/disttool_pending_sky.sql (modified) (3 diffs)
-
ippTools/share/disttool_pending_stack.sql (modified) (3 diffs)
-
ippTools/share/disttool_pending_warp.sql (modified) (3 diffs)
-
ippTools/share/disttool_pending_warp_bg.sql (modified) (3 diffs)
-
ippTools/share/disttool_revertrun.sql (modified) (1 diff)
-
ippTools/share/magicdstool_todestreak_camera.sql (modified) (1 diff)
-
ippTools/share/magicdstool_torevert_diff.sql (modified) (1 diff)
-
ippTools/share/magictool_setgotocleaned.sql (copied) (copied from trunk/ippTools/share/magictool_setgotocleaned.sql )
-
ippTools/share/magictool_tocleanup.sql (copied) (copied from trunk/ippTools/share/magictool_tocleanup.sql )
-
ippTools/share/pstamptool_pendingreq.sql (modified) (1 diff)
-
ippTools/share/pubtool_pending.sql (modified) (3 diffs)
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 diff)
-
ippTools/share/regtool_checkburntoolimfile.sql (modified) (2 diffs)
-
ippTools/share/regtool_checkstatus.sql (copied) (copied from trunk/ippTools/share/regtool_checkstatus.sql )
-
ippTools/share/regtool_pendingburntoolimfile.sql (modified) (1 diff)
-
ippTools/share/regtool_pendingexp.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/ippTools/share/Makefile.am
r29908 r30586 246 246 magictool_exposure.sql \ 247 247 magictool_setfull.sql \ 248 magictool_setgotocleaned.sql \ 249 magictool_tocleanup.sql \ 248 250 magicdstool_clearstatefaults.sql \ 249 251 magicdstool_change_file_data_state.sql \ … … 333 335 regtool_updatebyqueryimfile.sql \ 334 336 regtool_pendingburntoolimfile.sql \ 337 regtool_checkstatus.sql \ 335 338 stacktool_associationdefine_select.sql \ 336 339 stacktool_definebyquery_insert.sql \ -
branches/czw_branch/20101203/ippTools/share/disttool_pending_SSdiff.sql
r27027 r30586 17 17 diffSkyfile.quality, 18 18 distRun.no_magic, 19 0 AS magicked 19 0 AS magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 42 43 ON distRun.dist_id = distComponent.dist_id 43 44 AND diffSkyfile.skycell_id = distComponent.component 45 LEFT JOIN Label ON distRun.label = Label.label 44 46 WHERE 45 47 distRun.state = 'new' … … 48 50 AND ((diffRun.magicked > 0) OR distRun.no_magic) 49 51 AND (diffRun.state = 'full' OR (distRun.clean AND diffRun.state = 'cleaned')) 52 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_camera.sql
r29509 r30586 15 15 camProcessedExp.quality, 16 16 distRun.no_magic, 17 chipRun.magicked 17 chipRun.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 21 22 JOIN camProcessedExp USING(cam_id) 22 23 JOIN chipRun USING(chip_id) 23 -- JOIN chipProcessedImfile USING(exp_id, chip_id)24 24 JOIN rawExp using(exp_id) 25 25 LEFT JOIN distComponent 26 26 ON distRun.dist_id = distComponent.dist_id 27 -- AND chipProcessedImfile.class_id = distComponent.component 27 LEFT JOIN Label 28 ON distRun.label = Label.label 28 29 WHERE 29 30 distRun.state = 'new' 30 31 AND distRun.stage = 'camera' 31 32 AND distComponent.dist_id IS NULL 32 AND (((clean OR (chipRun.magicked >0)) AND (camRun.magicked > 0)) OR distRun.no_magic)33 AND (((clean OR (chipRun.magicked != 0)) AND (camRun.magicked > 0)) OR distRun.no_magic) 33 34 AND (camRun.state = 'full' OR (distRun.clean AND camRun.state = 'cleaned')) 35 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_chip.sql
r26567 r30586 15 15 chipProcessedImfile.quality, 16 16 distRun.no_magic, 17 chipProcessedImfile.magicked 17 chipProcessedImfile.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 24 25 ON distRun.dist_id = distComponent.dist_id 25 26 AND chipProcessedImfile.class_id = distComponent.component 27 LEFT JOIN Label 28 ON distRun.label = Label.label 26 29 WHERE 27 30 distRun.state = 'new' … … 30 33 AND ((chipRun.magicked > 0) OR distRun.no_magic) 31 34 AND (chipRun.state = 'full' OR (distRun.clean AND chipRun.state = 'cleaned')) 35 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_chip_bg.sql
r28730 r30586 15 15 0 AS quality, 16 16 distRun.no_magic, 17 chipBackgroundImfile.magicked 17 chipBackgroundImfile.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 25 26 ON distRun.dist_id = distComponent.dist_id 26 27 AND chipBackgroundImfile.class_id = distComponent.component 28 LEFT JOIN Label ON distRun.label = Label.label 27 29 WHERE 28 30 distRun.state = 'new' … … 31 33 AND ((chipBackgroundRun.magicked > 0) OR distRun.no_magic) 32 34 AND (chipBackgroundRun.state = 'full') 35 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_diff.sql
r26567 r30586 17 17 diffSkyfile.quality, 18 18 distRun.no_magic, 19 diffSkyfile.magicked 19 diffSkyfile.magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 32 33 ON distRun.dist_id = distComponent.dist_id 33 34 AND diffSkyfile.skycell_id = distComponent.component 35 LEFT JOIN Label ON distRun.label = Label.label 34 36 WHERE 35 37 distRun.state = 'new' … … 38 40 AND ((diffRun.magicked > 0) OR distRun.no_magic) 39 41 AND (diffRun.state = 'full' OR (distRun.clean AND diffRun.state = 'cleaned')) 42 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_fake.sql
r27458 r30586 15 15 0 as quality, 16 16 distRun.no_magic, 17 0 as magicked 17 0 as magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 26 27 ON distRun.dist_id = distComponent.dist_id 27 28 AND fakeProcessedImfile.class_id = distComponent.component 29 LEFT JOIN Label ON distRun.label = Label.label 28 30 WHERE 29 31 distRun.state = 'new' 30 32 AND distRun.stage = 'fake' 31 33 AND distComponent.dist_id IS NULL 34 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_raw.sql
r27457 r30586 17 17 0 as quality, 18 18 distRun.no_magic, 19 rawImfile.magicked 19 rawImfile.magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 28 29 ON distRun.dist_id = distComponent.dist_id 29 30 AND rawImfile.class_id = distComponent.component 31 LEFT JOIN Label ON distRun.label = Label.label 30 32 WHERE 31 33 distRun.state = 'new' … … 34 36 AND distComponent.dist_id IS NULL 35 37 AND (rawExp.magicked OR distRun.no_magic) 38 AND (Label.active OR Label.active IS NULL) 36 39 UNION 37 40 -- raw stage alternate inputs … … 54 57 0 as quality, 55 58 distRun.no_magic, 56 rawImfile.magicked 59 rawImfile.magicked, 60 IFNULL(Label.priority, 10000) AS priority 57 61 FROM distRun 58 62 JOIN distTarget USING(target_id, stage, clean) … … 68 72 ON distRun.dist_id = distComponent.dist_id 69 73 AND rawImfile.class_id = distComponent.component 74 LEFT JOIN Label ON distRun.label = Label.label 70 75 WHERE 71 76 distRun.state = 'new' … … 74 79 AND chipProcessedImfile.data_state = 'full' 75 80 AND chipProcessedImfile.magicked > 0 81 AND (Label.active OR Label.active IS NULL) 76 82 UNION 77 83 -- raw stage clean (dbinfo only) … … 93 99 0 as quality, 94 100 distRun.no_magic, 95 rawExp.magicked 101 rawExp.magicked, 102 IFNULL(Label.priority, 10000) AS priority 96 103 FROM distRun 97 104 JOIN distTarget USING(target_id, stage, clean) … … 99 106 LEFT JOIN distComponent 100 107 ON distRun.dist_id = distComponent.dist_id 108 LEFT JOIN Label ON distRun.label = Label.label 101 109 WHERE 102 110 distRun.state = 'new' … … 104 112 AND distRun.clean 105 113 AND distComponent.dist_id IS NULL 114 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_sky.sql
r28959 r30586 15 15 staticskyResult.quality, 16 16 1 AS no_magic, 17 0 AS magicked 17 0 AS magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 43 44 ON distRun.dist_id = distComponent.dist_id 44 45 AND stackRun.skycell_id = distComponent.component 46 LEFT JOIN Label ON distRun.label = Label.label 45 47 WHERE 46 48 distRun.state = 'new' … … 49 51 AND (staticskyRun.state = 'full' OR (distRun.clean AND staticskyRun.state = 'cleaned')) 50 52 AND (staticskyResult.fault = 0 AND staticskyResult.quality = 0) 53 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_stack.sql
r25838 r30586 17 17 stackSumSkyfile.quality, 18 18 1 AS no_magic, 19 0 AS magicked 19 0 AS magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 43 44 ON distRun.dist_id = distComponent.dist_id 44 45 AND stackRun.skycell_id = distComponent.component 46 LEFT JOIN Label ON distRun.label = Label.label 45 47 WHERE 46 48 distRun.state = 'new' … … 49 51 AND (stackRun.state = 'full' OR (distRun.clean AND stackRun.state = 'cleaned')) 50 52 AND (stackSumSkyfile.fault = 0 AND stackSumSkyfile.quality = 0) 53 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_warp.sql
r26567 r30586 15 15 warpSkyfile.quality, 16 16 distRun.no_magic, 17 warpSkyfile.magicked 17 warpSkyfile.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 27 28 ON distRun.dist_id = distComponent.dist_id 28 29 AND warpSkyfile.skycell_id = distComponent.component 30 LEFT JOIN Label ON distRun.label = Label.label 29 31 WHERE 30 32 distRun.state = 'new' … … 33 35 AND ((warpRun.magicked > 0) OR distRun.no_magic) 34 36 AND (warpRun.state = 'full' OR (distRun.clean AND warpRun.state = 'cleaned')) 37 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_pending_warp_bg.sql
r28742 r30586 15 15 0 as quality, 16 16 distRun.no_magic, 17 warpBackgroundSkyfile.magicked 17 warpBackgroundSkyfile.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 28 29 ON distRun.dist_id = distComponent.dist_id 29 30 AND warpBackgroundSkyfile.skycell_id = distComponent.component 31 LEFT JOIN Label ON distRun.label = Label.label 30 32 WHERE 31 33 distRun.state = 'new' … … 34 36 AND ((warpBackgroundRun.magicked > 0) OR distRun.no_magic) 35 37 AND (warpBackgroundRun.state = 'full') 38 AND (Label.active OR Label.active IS NULL) -
branches/czw_branch/20101203/ippTools/share/disttool_revertrun.sql
r26266 r30586 1 1 UPDATE distRun 2 2 SET distRun.fault = 0 3 WHERE distRun.state = 'new'3 WHERE (distRun.state = 'new' OR distRun.state = 'goto_cleaned') 4 4 AND distRun.fault != 0 -
branches/czw_branch/20101203/ippTools/share/magicdstool_todestreak_camera.sql
r29561 r30586 38 38 AND magicDSRun.stage = 'camera' 39 39 AND camRun.state = 'full' 40 AND chipRun.state = 'full'41 AND chipRun.magicked40 AND ((chipRun.state = 'full' AND chipRun.magicked > 0) 41 OR (chipRun.state = 'cleaned' AND chipRun.magicked < 0)) 42 42 AND camProcessedExp.fault = 0 43 43 AND camProcessedExp.quality = 0 -
branches/czw_branch/20101203/ippTools/share/magicdstool_torevert_diff.sql
r27945 r30586 10 10 outroot, 11 11 diffSkyfile.path_base, 12 magicDSFile.backup_path_base, 13 magicDSFile.recovery_path_base, 12 14 "NULL" AS cam_path_base, 13 15 CAST(diffRun.bothways AS SIGNED) AS bothways, -
branches/czw_branch/20101203/ippTools/share/pstamptool_pendingreq.sql
r27874 r30586 3 3 pstampRequest.*, 4 4 pstampDataStore.outProduct AS ds_outProduct, 5 IFNULL(pstampDataStore.need_magic, 1) AS need_magic, 5 6 IFNULL(Label.priority, 10000) AS priority 6 7 FROM pstampRequest -
branches/czw_branch/20101203/ippTools/share/pubtool_pending.sql
r30118 r30586 10 10 publishClient.workdir, 11 11 publishClient.output_format, 12 publishClient.magicked AS need_magic, 12 13 diffRun.diff_id AS stage_id, 13 14 rawExp.camera, … … 37 38 publishClient.workdir, 38 39 publishClient.output_format, 40 publishClient.magicked AS need_magic, 39 41 camRun.cam_id AS stage_id, 40 42 rawExp.camera, … … 59 61 publishClient.workdir, 60 62 publishClient.output_format, 63 publishClient.magicked AS need_magic, 61 64 diffPhotRun.diff_phot_id AS stage_id, 62 65 rawExp.camera, -
branches/czw_branch/20101203/ippTools/share/pxadmin_create_tables.sql
r30118 r30586 1391 1391 uri VARCHAR(255), 1392 1392 pollInterval INTEGER DEFAULT 60, 1393 need_magic TINYINT, 1393 1394 PRIMARY KEY(ds_id), 1394 1395 KEY(ds_id) -
branches/czw_branch/20101203/ippTools/share/regtool_checkburntoolimfile.sql
r29908 r30586 1 1 SELECT DISTINCT 2 exp_name,2 summitExp.exp_name, 3 3 rawImfile.uri, 4 4 summitExp.dateobs AS registered, … … 11 11 newExp.exp_id, 12 12 summitExp.exp_type, 13 raw Exp.dateobs,14 raw Exp.obs_mode AS obs_mode,15 raw Exp.object AS object,13 rawImfile.dateobs, 14 rawImfile.obs_mode AS obs_mode, 15 rawImfile.object AS object, 16 16 rawImfile.burntool_state AS burntool_state, 17 17 rawImfile.class_id, 18 summitImfile.class_id AS summit_class_id, 18 19 (pzDownloadExp.state = 'stop') AS is_downloaded, 19 20 (rawImfile.burntool_state IS NOT NULL) AS is_registered 20 21 FROM 21 summitExp 22 LEFT JOIN pzDownloadExp USING(exp_name) 23 LEFT JOIN newExp ON exp_name = tmp_exp_name 24 LEFT JOIN rawExp USING(exp_id, exp_name) 25 LEFT JOIN rawImfile USING(exp_name) 22 summitExp 23 JOIN summitImfile USING(exp_name) 24 LEFT JOIN pzDownloadExp USING(exp_name) 25 LEFT JOIN newExp ON summitExp.exp_name = tmp_exp_name 26 LEFT JOIN newImfile ON (summitImfile.class_id = newImfile.tmp_class_id AND newExp.exp_id = newImfile.exp_id) 27 LEFT JOIN rawExp ON rawExp.exp_id = newExp.exp_id 28 LEFT JOIN rawImfile ON (rawImfile.exp_id = newExp.exp_id AND rawImfile.tmp_class_id = newImfile.tmp_class_id) 26 29 WHERE 27 summitExp.dateobs >= '@DATE @T00:00:00'28 AND summitExp.dateobs <= '@DATE @T23:59:59'29 AND (rawImfile.class_id = '@CLASS_ID@' OR rawImfile.class_id IS NULL)30 AND ( exp_name <= '@EXP_NAME@')30 summitExp.dateobs >= '@DATEOBS_BEGIN@' 31 AND summitExp.dateobs <= '@DATEOBS_END@' 32 AND summitImfile.class_id = '@CLASS_ID@' 33 AND (summitExp.exp_name <= '@EXP_NAME@') 31 34 ORDER BY summitExp.dateobs -
branches/czw_branch/20101203/ippTools/share/regtool_pendingburntoolimfile.sql
r29982 r30586 12 12 newImfile.tmp_class_id, 13 13 summitExp.exp_type, 14 raw Exp.dateobs,15 raw Exp.obs_mode AS obs_mode,16 raw Exp.object AS object,14 rawImfile.dateobs, 15 rawImfile.obs_mode AS obs_mode, 16 rawImfile.object AS object, 17 17 rawImfile.burntool_state AS burntool_state, 18 18 rawImfile.class_id, 19 summitImfile.class_id AS summit_class_id, 19 20 (pzDownloadExp.state = 'stop') AS is_downloaded, 20 21 (rawImfile.burntool_state IS NOT NULL) AS is_registered 21 22 FROM 22 summitExp 23 LEFT JOIN pzDownloadExp USING(exp_name) 24 LEFT JOIN newExp ON exp_name = tmp_exp_name 25 LEFT JOIN newImfile USING(exp_id) 26 LEFT JOIN rawExp USING(exp_id, exp_name) 27 LEFT JOIN rawImfile ON (rawImfile.exp_name = newExp.tmp_exp_name AND rawImfile.tmp_class_id = newImfile.tmp_class_id) 23 summitExp 24 JOIN summitImfile USING(exp_name) 25 LEFT JOIN pzDownloadExp USING(exp_name) 26 LEFT JOIN newExp ON summitExp.exp_name = tmp_exp_name 27 LEFT JOIN newImfile ON (summitImfile.class_id = newImfile.tmp_class_id AND newExp.exp_id = newImfile.exp_id) 28 LEFT JOIN rawExp ON rawExp.exp_id = newExp.exp_id 29 LEFT JOIN rawImfile ON (rawImfile.exp_id = newExp.exp_id AND rawImfile.tmp_class_id = newImfile.tmp_class_id) 28 30 WHERE 29 summitExp.dateobs >= '@DATE @T00:00:00'30 AND summitExp.dateobs <= '@DATE@T23:59:59'31 ORDER BY newImfile.tmp_class_id,summitExp.dateobs31 summitExp.dateobs >= '@DATEOBS_BEGIN@' 32 AND summitExp.dateobs <= '@DATEOBS_END@' 33 ORDER BY summitImfile.class_id,summitExp.dateobs -
branches/czw_branch/20101203/ippTools/share/regtool_pendingexp.sql
r30118 r30586 48 48 GROUP BY newExp.exp_id 49 49 HAVING SUM(rawImfile.fault) = 0 50 LIMIT 256 50 51 ) AS RAWEXPOSURES 51 52 USING (exp_id)
Note:
See TracChangeset
for help on using the changeset viewer.
