Changeset 31439 for branches/eam_branches/ipp-20110404/ippTools/share
- Timestamp:
- May 5, 2011, 10:05:10 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110404/ippTools/share
- Files:
-
- 21 edited
- 24 copied
-
Makefile.am (modified) (4 diffs)
-
addtool_find_cam_id.sql (modified) (1 diff)
-
addtool_find_cam_id_dvo.sql (modified) (1 diff)
-
addtool_find_pendingexp.sql (modified) (2 diffs)
-
addtool_find_pendingexp_cam.sql (copied) (copied from trunk/ippTools/share/addtool_find_pendingexp_cam.sql )
-
addtool_find_pendingexp_stack.sql (copied) (copied from trunk/ippTools/share/addtool_find_pendingexp_stack.sql )
-
addtool_find_pendingexp_staticsky.sql (copied) (copied from trunk/ippTools/share/addtool_find_pendingexp_staticsky.sql )
-
addtool_find_processedexp_cam.sql (copied) (copied from trunk/ippTools/share/addtool_find_processedexp_cam.sql )
-
addtool_find_processedexp_stack.sql (copied) (copied from trunk/ippTools/share/addtool_find_processedexp_stack.sql )
-
addtool_find_processedexp_staticsky.sql (copied) (copied from trunk/ippTools/share/addtool_find_processedexp_staticsky.sql )
-
addtool_find_sky_id.sql (copied) (copied from trunk/ippTools/share/addtool_find_sky_id.sql )
-
addtool_find_sky_id_dvo.sql (copied) (copied from trunk/ippTools/share/addtool_find_sky_id_dvo.sql )
-
addtool_find_stack_id.sql (copied) (copied from trunk/ippTools/share/addtool_find_stack_id.sql )
-
addtool_find_stack_id_dvo.sql (copied) (copied from trunk/ippTools/share/addtool_find_stack_id_dvo.sql )
-
addtool_queue_cam_id.sql (modified) (1 diff)
-
addtool_queue_sky_id.sql (copied) (copied from trunk/ippTools/share/addtool_queue_sky_id.sql )
-
addtool_queue_stack_id.sql (copied) (copied from trunk/ippTools/share/addtool_queue_stack_id.sql )
-
addtool_revertprocessedexp_cam.sql (copied) (copied from trunk/ippTools/share/addtool_revertprocessedexp_cam.sql )
-
addtool_revertprocessedexp_stack.sql (copied) (copied from trunk/ippTools/share/addtool_revertprocessedexp_stack.sql )
-
addtool_revertprocessedexp_staticsky.sql (copied) (copied from trunk/ippTools/share/addtool_revertprocessedexp_staticsky.sql )
-
camtool_find_pendingimfile.sql (modified) (1 prop)
-
difftool_listrun.sql (modified) (3 diffs)
-
difftool_skyfile.sql (modified) (2 diffs)
-
disttool_definebyquery_raw_no_magic.sql (copied) (copied from trunk/ippTools/share/disttool_definebyquery_raw_no_magic.sql )
-
disttool_pending_SSdiff.sql (modified) (1 diff)
-
disttool_pending_camera.sql (modified) (1 diff)
-
disttool_pending_chip.sql (modified) (1 diff)
-
disttool_pending_chip_bg.sql (modified) (1 diff)
-
disttool_pending_diff.sql (modified) (1 diff)
-
disttool_pending_fake.sql (modified) (1 diff)
-
disttool_pending_raw.sql (modified) (6 diffs)
-
disttool_pending_sky.sql (modified) (1 diff)
-
disttool_pending_stack.sql (modified) (1 diff)
-
disttool_pending_warp.sql (modified) (1 diff)
-
disttool_pending_warp_bg.sql (modified) (1 diff)
-
laptool_definerun.sql (copied) (copied from trunk/ippTools/share/laptool_definerun.sql )
-
laptool_exposures.sql (copied) (copied from trunk/ippTools/share/laptool_exposures.sql )
-
laptool_inactiveexp.sql (copied) (copied from trunk/ippTools/share/laptool_inactiveexp.sql )
-
laptool_listsequence.sql (copied) (copied from trunk/ippTools/share/laptool_listsequence.sql )
-
laptool_pendingchipexp.sql (copied) (copied from trunk/ippTools/share/laptool_pendingchipexp.sql )
-
laptool_pendingexp.sql (copied) (copied from trunk/ippTools/share/laptool_pendingexp.sql )
-
laptool_pendingrun.sql (copied) (copied from trunk/ippTools/share/laptool_pendingrun.sql )
-
laptool_stacks.sql (copied) (copied from trunk/ippTools/share/laptool_stacks.sql )
-
pxadmin_create_tables.sql (modified) (1 diff, 1 prop)
-
stacktool_sassskyfile.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/ippTools/share/Makefile.am
r30373 r31439 8 8 addtool_find_cam_id_dvo.sql \ 9 9 addtool_find_cam_id.sql \ 10 addtool_find_sky_id_dvo.sql \ 11 addtool_find_sky_id.sql \ 12 addtool_find_stack_id_dvo.sql \ 13 addtool_find_stack_id.sql \ 10 14 addtool_find_pendingexp.sql \ 15 addtool_find_pendingexp_cam.sql \ 16 addtool_find_pendingexp_stack.sql \ 17 addtool_find_pendingexp_staticsky.sql \ 11 18 addtool_find_pendingmergeprocess.sql \ 12 addtool_find_processedexp.sql \ 19 addtool_find_processedexp_cam.sql \ 20 addtool_find_processedexp_stack.sql \ 21 addtool_find_processedexp_staticsky.sql \ 13 22 addtool_find_minidvodbprocessed.sql \ 14 23 addtool_find_minidvodbrun.sql \ … … 16 25 addtool_pendingcleanuprun.sql \ 17 26 addtool_queue_cam_id.sql \ 27 addtool_queue_stack_id.sql \ 28 addtool_queue_sky_id.sql \ 18 29 addtool_queue_minidvodbrun.sql \ 19 30 addtool_revertminidvodbprocessed.sql \ 20 addtool_revertprocessedexp.sql \ 31 addtool_revertprocessedexp_cam.sql \ 32 addtool_revertprocessedexp_stack.sql \ 33 addtool_revertprocessedexp_staticsky.sql \ 21 34 bgtool_advancechip.sql \ 22 35 bgtool_advancewarp.sql \ … … 164 177 disttool_definebyquery_fake.sql \ 165 178 disttool_definebyquery_raw.sql \ 179 disttool_definebyquery_raw_no_magic.sql \ 166 180 disttool_definebyquery_sky.sql \ 167 181 disttool_definebyquery_stack.sql \ … … 400 414 diffphottool_advance.sql \ 401 415 diffphottool_revert.sql \ 402 diffphottool_data.sql 416 diffphottool_data.sql \ 417 laptool_definerun.sql \ 418 laptool_exposures.sql \ 419 laptool_inactiveexp.sql \ 420 laptool_listsequence.sql \ 421 laptool_pendingchipexp.sql \ 422 laptool_pendingexp.sql \ 423 laptool_pendingrun.sql \ 424 laptool_stacks.sql 425 -
branches/eam_branches/ipp-20110404/ippTools/share/addtool_find_cam_id.sql
r29407 r31439 11 11 addRun.dvodb AS previous_dvodb 12 12 FROM addRun 13 JOIN camRun USING(cam_id)13 JOIN camRun on cam_id=stage_id 14 14 JOIN chipRun USING(chip_id) 15 15 ) as foo 16 16 ON exp_id = added_exp_id 17 AND stage = 'cam' 17 18 -- hook for qualifying the join on the previous_dvodb 18 19 AND %s -
branches/eam_branches/ipp-20110404/ippTools/share/addtool_find_cam_id_dvo.sql
r29407 r31439 6 6 AND exp_id NOT IN (SELECT exp_id 7 7 FROM addRun 8 JOIN camRun USING(cam_id)8 JOIN camRun on cam_id=stage_id 9 9 JOIN chipRun USING(chip_id) 10 WHERE %s10 WHERE stage = 'cam' AND %s 11 11 ) -
branches/eam_branches/ipp-20110404/ippTools/share/addtool_find_pendingexp.sql
r25816 r31439 1 1 SELECT 2 addRun.*, 3 camProcessedExp.path_base as camroot, 4 rawExp.exp_tag, 5 rawExp.exp_id, 6 rawExp.exp_name, 7 rawExp.camera, 8 rawExp.telescope, 9 rawExp.filelevel 2 addRun.* 10 3 FROM addRun 11 JOIN camRun12 USING(cam_id)13 JOIN camProcessedExp14 USING(cam_id)15 JOIN chipRun16 USING(chip_id)17 JOIN rawExp18 USING(exp_id)19 4 LEFT JOIN addProcessedExp 20 5 USING(add_id) … … 22 7 ON addRun.label = addMask.label 23 8 WHERE 24 camRun.state = 'full' 25 AND ((addRun.state = 'new' AND addProcessedExp.add_id IS NULL) OR addRun.state = 'update') 9 ((addRun.state = 'new' AND addProcessedExp.add_id IS NULL) OR addRun.state = 'update') 26 10 AND addRun.dvodb IS NOT NULL 27 11 AND addRun.workdir IS NOT NULL -
branches/eam_branches/ipp-20110404/ippTools/share/addtool_queue_cam_id.sql
r28181 r31439 2 2 SELECT 3 3 0, -- add_id 4 cam_id, -- cam_id 4 'cam', -- stage 5 cam_id, -- stage_id 5 6 '%s', -- state 6 7 '%s', -- workdir -
branches/eam_branches/ipp-20110404/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed
/trunk/ippTools/share/camtool_find_pendingimfile.sql (added) merged: 31375
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110404/ippTools/share/difftool_listrun.sql
r29172 r31439 20 20 camProcessedInput.zpt_lq, 21 21 camProcessedInput.zpt_uq, 22 camProcessedInput.fwhm_major, 22 23 rawInput.comment, 23 24 rawInput.exp_time, … … 25 26 rawInput.exp_name AS exp_name_1, 26 27 rawInput.exp_id AS exp_id_1, 28 rawInput.filter AS filter_1, 27 29 rawInput.comment AS comment_1, 28 30 rawInput.dateobs AS dateobs_1, … … 34 36 rawTemplate.exp_name AS exp_name_2, 35 37 rawTemplate.exp_id AS exp_id_2, 38 rawInput.filter AS filter_2, 36 39 rawTemplate.comment AS comment_2, 37 40 rawTemplate.dateobs AS dateobs_2, -
branches/eam_branches/ipp-20110404/ippTools/share/difftool_skyfile.sql
r27743 r31439 24 24 rawInput.exp_name AS exp_name_1, 25 25 rawInput.exp_id AS exp_id_1, 26 rawInput.filter AS filter_1, 26 27 chipInput.chip_id AS chip_id_1, 27 28 camInput.cam_id AS cam_id_1, … … 31 32 rawTemplate.exp_name AS exp_name_2, 32 33 rawTemplate.exp_id AS exp_id_2, 34 rawTemplate.filter AS filter_2, 33 35 chipTemplate.chip_id AS chip_id_2, 34 36 camTemplate.cam_id AS cam_id_2, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_SSdiff.sql
r30387 r31439 6 6 stage_id, 7 7 diffSkyfile.skycell_id AS component, 8 exp_type, 8 9 clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_camera.sql
r30387 r31439 6 6 stage_id, 7 7 'exposure' AS component, 8 exp_type, 8 9 clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_chip.sql
r30387 r31439 6 6 stage_id, 7 7 chipProcessedImfile.class_id AS component, 8 exp_type, 8 9 distRun.clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_chip_bg.sql
r30387 r31439 6 6 stage_id, 7 7 chipBackgroundImfile.class_id AS component, 8 exp_type, 8 9 distRun.clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_diff.sql
r30387 r31439 6 6 stage_id, 7 7 diffSkyfile.skycell_id AS component, 8 exp_type, 8 9 clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_fake.sql
r30387 r31439 6 6 stage_id, 7 7 fakeProcessedImfile.class_id AS component, 8 exp_type, 8 9 clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_raw.sql
r30653 r31439 1 SELECT * FROM ( 2 -- rawExp magicked with re_place 1 3 SELECT 2 4 distRun.dist_id, … … 6 8 rawExp.exp_id AS stage_id, 7 9 rawImfile.class_id AS component, 10 rawExp.exp_type, 8 11 clean, 9 12 rawExp.camera, … … 38 41 AND distRun.stage = 'raw' 39 42 AND distComponent.dist_id IS NULL 40 AND (rawExp.magicked OR distRun.no_magic) 43 -- AND (rawExp.magicked OR distRun.no_magic) 44 AND rawExp.magicked 41 45 -- need to have magicked the chip image which makes the camera mask 42 46 AND chipProcessedImfile.magicked != 0 43 47 AND camRun.magicked > 0 48 AND (Label.active OR Label.active IS NULL) 49 UNION 50 SELECT 51 -- raw images no_magic required 52 distRun.dist_id, 53 distRun.label, 54 distTarget.dist_group, 55 'raw' AS stage, 56 rawExp.exp_id AS stage_id, 57 rawImfile.class_id AS component, 58 rawExp.exp_type, 59 clean, 60 rawExp.camera, 61 CONCAT_WS('.', distRun.outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 62 -- XXX: replace this with rawImfile.path_base once it exists 63 TRIM(TRAILING '.fits' FROM rawImfile.uri) AS path_base, 64 CAST(NULL AS CHAR(255)) AS alt_path_base, 65 -- pass camera stage path base since we want the camera mask file. The script knows what to do 66 CAST(NULL AS CHAR(255)) AS chip_path_base, 67 CAST(NULL AS CHAR(255)) AS state, 68 CAST(NULL AS CHAR(255)) AS data_state, 69 0 as quality, 70 distRun.no_magic, 71 rawImfile.magicked, 72 IFNULL(Label.priority, 10000) AS priority 73 FROM distRun 74 JOIN distTarget USING(target_id, stage, clean) 75 JOIN rawExp ON rawExp.exp_id = stage_id 76 AND distTarget.stage = 'raw' AND distRun.alternate = 0 77 JOIN rawImfile USING(exp_id) 78 LEFT JOIN distComponent 79 ON distRun.dist_id = distComponent.dist_id 80 AND rawImfile.class_id = distComponent.component 81 LEFT JOIN Label ON distRun.label = Label.label 82 WHERE 83 distRun.state = 'new' 84 AND distRun.clean = 0 85 AND distRun.stage = 'raw' 86 AND distComponent.dist_id IS NULL 87 AND (distRun.no_magic) 44 88 AND (Label.active OR Label.active IS NULL) 45 89 UNION … … 52 96 rawExp.exp_id AS stage_id, 53 97 rawImfile.class_id AS component, 98 rawExp.exp_type, 54 99 clean, 55 100 rawExp.camera, … … 96 141 rawExp.exp_id AS stage_id, 97 142 'exposure' AS component, 143 rawExp.exp_type, 98 144 clean, 99 145 rawExp.camera, … … 120 166 AND distComponent.dist_id IS NULL 121 167 AND (Label.active OR Label.active IS NULL) 168 ) AS distRun 169 WHERE 1 -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_sky.sql
r30387 r31439 6 6 stage_id, 7 7 stackRun.skycell_id AS component, 8 exp_type, 8 9 clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_stack.sql
r30387 r31439 6 6 stage_id, 7 7 stackRun.skycell_id AS component, 8 exp_type, 8 9 clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_warp.sql
r30387 r31439 6 6 stage_id, 7 7 warpSkyfile.skycell_id AS component, 8 exp_type, 8 9 clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/disttool_pending_warp_bg.sql
r30387 r31439 6 6 stage_id, 7 7 warpBackgroundSkyfile.skycell_id AS component, 8 exp_type, 8 9 clean, 9 10 rawExp.camera, -
branches/eam_branches/ipp-20110404/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed
/branches/czw_branch/20110406/ippTools/share/pxadmin_create_tables.sql (added) merged: 31396,31407,31434 /trunk/ippTools/share/pxadmin_create_tables.sql (added) merged: 31375,31435
r31165 r31439 1891 1891 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1892 1892 1893 -- Tables for large area processing 1894 1895 CREATE TABLE lapSequence ( 1896 seq_id BIGINT AUTO_INCREMENT, -- Identifier for the processing sequence 1897 name VARCHAR(64) NOT NULL, -- short name of the sequence 1898 description VARCHAR(255) NOT NULL, -- longer description of the sequence 1899 PRIMARY KEY(seq_id), 1900 KEY(name) 1901 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1902 1903 CREATE TABLE lapRun ( 1904 lap_id BIGINT AUTO_INCREMENT, -- Identifier for the processing run 1905 seq_id BIGINT NOT NULL, -- Identifier to match to the sequence 1906 tess_id VARCHAR(64) NOT NULL, -- tessellation id to use 1907 projection_cell VARCHAR(64) NOT NULL, -- projection cell from the tessellation to consider 1908 filter VARCHAR(64) NOT NULL, -- filter 1909 state VARCHAR(64) NOT NULL, -- state of run 1910 label VARCHAR(64) NOT NULL, -- processing label 1911 dist_group VARCHAR(64) NOT NULL, -- distribution group for products of this run 1912 registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered 1913 fault SMALLINT NOT NULL, -- fault code 1914 quick_sass_id BIGINT, -- stackAssociation id for quick stack 1915 final_sass_id BIGINT, -- stackAssociation id for final stack 1916 PRIMARY KEY(lap_id), 1917 KEY(seq_id), 1918 KEY(projection_cell), 1919 KEY(filter), 1920 KEY(state), 1921 KEY(label), 1922 KEY(fault), 1923 FOREIGN KEY(seq_id) REFERENCES lapSequence(seq_id), 1924 FOREIGN KEY(quick_sass_id) REFERENCES stackAssociation(sass_id), 1925 FOREIGN KEY(final_sass_id) REFERENCES stackAssociation(sass_id) 1926 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1927 1928 CREATE TABLE lapExp ( 1929 lap_id BIGINT NOT NULL, -- Link back to processing run 1930 exp_id BIGINT NOT NULL, -- exposure definition 1931 chip_id BIGINT, -- processing id from chipRun 1932 pair_id BIGINT, -- companion chip_id 1933 private TINYINT DEFAULT 0, -- denotes this exposure is private 1934 pairwise TINYINT DEFAULT 0, -- denotes if this exposure should be pairwise diffed 1935 active TINYINT DEFAULT 0, -- denotes if this exposure is currently in use 1936 data_state VARCHAR(64) NOT NULL, -- state of exposure 1937 PRIMARY KEY (lap_id), 1938 KEY (exp_id), 1939 KEY (chip_id), 1940 KEY (pair_id), 1941 KEY (data_state), 1942 FOREIGN KEY (lap_id) REFERENCES lapRun(lap_id), 1943 FOREIGN KEY (exp_id) REFERENCES rawExp(exp_id), 1944 FOREIGN KEY (chip_id,exp_id) REFERENCES chipRun(chip_id,exp_id), 1945 FOREIGN KEY (pair_id) REFERENCES chipRun(chip_id) 1946 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1947 1893 1948 -- This comment line is here to avoid empty query error. 1894 1949 -- Another way to avoid that problem is to omit the semicolon above but I think that is untidy. - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110404/ippTools/share/stacktool_sassskyfile.sql
r28375 r31439 18 18 where stack_id = stackRun.stack_id limit 1 19 19 ) as camera 20 FROM stack Run21 JOIN stack SumSkyfile USING(stack_id)22 JOIN stack AssociationMapUSING(stack_id)23 JOIN stackAssociation USING(sass_id)20 FROM stackAssociation 21 JOIN stackAssociationMap USING(sass_id) 22 JOIN stackRun USING(stack_id) 23 LEFT JOIN stackSumSkyfile USING(stack_id)
Note:
See TracChangeset
for help on using the changeset viewer.
