Changeset 35096 for branches/eam_branches/ipp-20121219/ippTools/share
- Timestamp:
- Feb 6, 2013, 2:34:49 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20121219
- Files:
-
- 13 edited
- 4 copied
-
. (modified) (1 prop)
-
ippTools/share/Makefile.am (modified) (1 diff)
-
ippTools/share/bgtool_definechip.sql (modified) (1 diff)
-
ippTools/share/camtool_find_pendingimfile.sql (modified) (1 prop)
-
ippTools/share/chiptool_setimfiletoupdate.sql (modified) (1 prop)
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 diff, 1 prop)
-
ippTools/share/pxadmin_drop_tables.sql (modified) (1 diff)
-
ippTools/share/releasetool_definerelexp.sql (copied) (copied from trunk/ippTools/share/releasetool_definerelexp.sql )
-
ippTools/share/releasetool_listrelease.sql (copied) (copied from trunk/ippTools/share/releasetool_listrelease.sql )
-
ippTools/share/releasetool_listrelexp.sql (copied) (copied from trunk/ippTools/share/releasetool_listrelexp.sql )
-
ippTools/share/releasetool_listsurvey.sql (copied) (copied from trunk/ippTools/share/releasetool_listsurvey.sql )
-
ippTools/share/stacktool_tobkg.sql (modified) (1 diff)
-
ippTools/share/staticskytool_defineskycalrun.sql (modified) (2 diffs)
-
ippTools/share/staticskytool_revert.sql (modified) (1 diff)
-
ippTools/share/staticskytool_revertskycal.sql (modified) (1 diff)
-
ippTools/share/staticskytool_skycalresult.sql (modified) (1 diff)
-
ippTools/share/warptool_towarped.sql (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219
-
branches/eam_branches/ipp-20121219/ippTools/share/Makefile.am
r34800 r35096 461 461 vptool_processedcell.sql \ 462 462 vptool_revertrun.sql \ 463 sctool_list.sql 463 sctool_list.sql \ 464 releasetool_listsurvey.sql \ 465 releasetool_listrelease.sql \ 466 releasetool_listrelexp.sql \ 467 releasetool_definerelexp.sql 464 468 -
branches/eam_branches/ipp-20121219/ippTools/share/bgtool_definechip.sql
r32680 r35096 3 3 FROM chipRun 4 4 JOIN rawExp USING(exp_id) 5 JOIN camRun USING(chip_id) 6 JOIN camProcessedExp USING(cam_id) 5 7 LEFT JOIN chipBackgroundRun USING(chip_id) 6 8 WHERE chipRun.state = 'full' 9 AND camRun.state = 'full' 10 AND camProcessedExp.quality = 0 -
branches/eam_branches/ipp-20121219/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20121219/ippTools/share/chiptool_setimfiletoupdate.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20121219/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed
/trunk/ippTools/share/pxadmin_create_tables.sql merged: 34912,35048
r34903 r35096 2148 2148 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 2149 2149 2150 2151 -- This comment line is here to avoid empty query error. 2150 CREATE TABLE survey ( 2151 surveyID INT(8), 2152 surveyName VARCHAR(16) NOT NULL, 2153 description VARCHAR(255), 2154 PRIMARY KEY(surveyID), 2155 UNIQUE KEY(name) 2156 ) ENGINE=InnoDB CHARSET=latin1; 2157 2158 2159 CREATE TABLE ippRelease ( 2160 rel_id INT(8) AUTO_INCREMENT, 2161 surveyID INT(8), 2162 releaseName VARCHAR(64), 2163 relase_state VARCHAR(16), -- active, pending, archive, drop 2164 dataRelease INT(8), -- PSPS dataRelease 2165 priority INT(8), 2166 PRIMARY KEY(rel_id), 2167 KEY(releaseName), 2168 KEY(state), 2169 KEY(priority), 2170 FOREIGN KEY(surveyID) REFERENCES survey(surveyID) 2171 ) ENGINE=Innodb DEFAULT CHARSET=latin1; 2172 2173 CREATE TABLE relExp ( 2174 relexp_id BIGINT AUTO_INCREMENT, 2175 rel_id INT(8), 2176 exp_id BIGINT, 2177 chip_id BIGINT, -- links to the runs that supplied the data 2178 cam_id BIGINT, -- for this release 2179 state VARCHAR(16), -- released, pending, archive, drop 2180 flags INT UNSIGNED, -- flags for relphot, relastro, ?? 2181 zpt_obs FLOAT, -- calibrated zero point for this release of 2182 zpt_stdev FLOAT, -- this exposure 2183 path_base VARCHAR(255), -- path_base of any supporting files for this 2184 -- release of this exposure. 2185 registered DATETIME, -- insertion time for this row 2186 time_stamp DATETIME, -- time of last update for this row 2187 PRIMARY KEY (relexp_id), 2188 FOREIGN KEY(rel_id) REFERENCES ippRelease(rel_id), 2189 KEY (state), 2190 FOREIGN KEY(exp_id) REFERENCES rawExp(exp_id), 2191 FOREIGN KEY(chip_id) REFERENCES chipRun(chip_id), 2192 FOREIGN KEY(cam_id) REFERENCES camRun(cam_id) 2193 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2194 2195 CREATE TABLE relStack ( 2196 relstack_id BIGINT AUTO_INCREMENT, 2197 rel_id INT(8), 2198 skycal_id BIGINT, -- id of the sky calibration run that supplied the calibration 2199 -- for this release. We get back to stack from here 2200 skycell_id varchar(64), 2201 tess_id varchar(64), 2202 state VARCHAR(16), -- released, pending, archive, drop 2203 flags INT UNSIGNED, 2204 stack_type VARCHAR(16), -- nightly, deep, reference 2205 zpt_obs FLOAT, -- calibrated zero point for this release of this skycell 2206 zpt_stdev FLOAT, 2207 fwhm_major FLOAT, -- seeing as measured by staticsky 2208 path_base VARCHAR(255), -- path_base of any supporting files, 2209 registered DATETIME, 2210 time_stamp DATETIME, 2211 PRIMARY KEY (relstack_id), 2212 KEY (tess_id, skycell_id), 2213 KEY (rel_id, tess_id, skycell_id), 2214 FOREIGN KEY(rel_id) REFERENCES ippRelease(rel_id), 2215 FOREIGN KEY(skycal_id) REFERENCES skycalRun(skycal_id) 2216 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2217 2218 2219 2220 -- These comment lines are here to avoid an empty query error. 2152 2221 -- 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-20121219/ippTools/share/pxadmin_drop_tables.sql
r33720 r35096 109 109 DROP TABLE IF EXISTS skycalResult; 110 110 DROP TABLE IF EXISTS skycell; 111 DROP TABLE IF EXISTS relExp; 112 DROP TABLE IF EXISTS ippRelease; 113 DROP TABLE IF EXISTS survey; 111 114 112 115 SET FOREIGN_KEY_CHECKS=1 -
branches/eam_branches/ipp-20121219/ippTools/share/stacktool_tobkg.sql
r34800 r35096 25 25 -- WHERE hook %s 26 26 GROUP BY stack_id 27 HAVING (SUM(IF(warpRun.state = 'full', 1, 0)) = COUNT(stackInputSkyfile.warp_id) AND 27 HAVING ((SUM(IF(warpRun.state = 'cleaned', 1, 0)) = COUNT(stackInputSkyfile.warp_id) OR 28 SUM(IF(warpRun.state = 'full', 1, 0)) = COUNT(stackInputSkyfile.warp_id)) AND 28 29 SUM(IF(warpSkyfile.background_model = 1, 1, 0)) = COUNT(stackInputSkyfile.warp_id)) 29 30 -
branches/eam_branches/ipp-20121219/ippTools/share/staticskytool_defineskycalrun.sql
r34761 r35096 1 1 SELECT 2 s ky_id,3 stack _id,2 staticskyRun.sky_id, 3 stackRun.stack_id, 4 4 skycell_id, 5 5 filter, … … 14 14 JOIN stackSumSkyfile USING(stack_id) 15 15 JOIN skycell USING(tess_id, skycell_id) 16 LEFT JOIN skycalRun USING(sky_id, stack_id)16 LEFT JOIN skycalRun ON staticskyRun.sky_id = skycalRun.sky_id AND stackRun.stack_id = skycalRun.stack_id -- join hook %s 17 17 WHERE staticskyRun.state = 'full' 18 18 AND staticskyResult.quality = 0 -
branches/eam_branches/ipp-20121219/ippTools/share/staticskytool_revert.sql
r28154 r35096 1 1 DELETE FROM staticskyResult 2 USING staticskyResult, staticskyRun 2 USING staticskyResult, staticskyRun, staticskyInput, stackRun, skycell 3 3 WHERE staticskyRun.sky_id = staticskyResult.sky_id 4 AND staticskyRun.sky_id = staticskyInput.sky_id 5 AND staticskyInput.stack_id = stackRun.stack_id 6 AND stackRun.tess_id = skycell.tess_id 7 AND stackRun.skycell_id = skycell.skycell_id 4 8 AND staticskyRun.state = 'new' 5 9 AND staticskyResult.fault != 0 -
branches/eam_branches/ipp-20121219/ippTools/share/staticskytool_revertskycal.sql
r32962 r35096 1 1 DELETE FROM skycalResult 2 USING skycalResult, skycalRun, stackRun 2 USING skycalResult, skycalRun, stackRun, skycell 3 3 WHERE skycalRun.skycal_id = skycalResult.skycal_id 4 4 AND stackRun.stack_id = skycalRun.stack_id 5 5 AND skycalRun.state = 'new' 6 6 AND skycalResult.fault != 0 7 AND stackRun.tess_id = skycell.tess_id 8 AND stackRun.skycell_id = skycell.skycell_id -
branches/eam_branches/ipp-20121219/ippTools/share/staticskytool_skycalresult.sql
r32962 r35096 2 2 skycalResult.*, 3 3 skycalRun.stack_id, 4 stackRun.tess_id,5 stackRun.skycell_id,6 4 stackRun.filter, 7 5 skycalRun.state, 8 6 skycalRun.label, 9 7 skycalRun.data_group, 10 skycalRun.sky_id 8 skycalRun.sky_id, 9 skycell.* 11 10 FROM skycalRun 12 11 JOIN skycalResult USING(skycal_id) 13 JOIN stackRun USING(stack_id) 14 12 JOIN stackRun USING(stack_id) 13 JOIN skycell USING(tess_id, skycell_id) -
branches/eam_branches/ipp-20121219/ippTools/share/warptool_towarped.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
