Changeset 27515
- Timestamp:
- Mar 29, 2010, 3:09:43 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/wiki_nightly_stacks_table.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/wiki_nightly_stacks_table.pl
r26710 r27515 22 22 $db = init_gpc_db(); 23 23 24 @targets = ('M31','MD01','MD02','MD03','MD04','MD05','MD06','MD07','MD08','MD09','MD10' );24 @targets = ('M31','MD01','MD02','MD03','MD04','MD05','MD06','MD07','MD08','MD09','MD10','ThreePi','STS','SweetSpot'); 25 25 26 26 # potential targets 27 27 if (exists($opt{P})) { 28 28 foreach $t (@targets) { 29 $sth = "select filter,DATE_FORMAT(rawExp.dateobs,'%Y-%m-%d') AS day,count(filter) FROM rawExp JOIN newExp using(exp_id) WHERE rawExp.fault = 0 AND exp_type = 'OBJECT' AND comment LIKE '${t}%' AND dateobs >= '2009-12-08T00:00:00' GROUP BY day,filter"; 29 $comment = $t; 30 if ($comment eq 'ThreePi') { 31 $comment = '3Pi'; 32 } 33 $sth = "select filter,DATE_FORMAT(rawExp.dateobs,'%Y-%m-%d') AS day,count(filter) FROM rawExp JOIN newExp using(exp_id) WHERE rawExp.fault = 0 AND exp_type = 'OBJECT' AND comment LIKE '%${comment}%' AND dateobs >= '2010-02-12T00:00:00' GROUP BY day,filter"; 30 34 $data_ref = $db->selectall_arrayref( $sth ); 31 35 foreach $rr (@{ $data_ref }) { … … 63 67 #queued in chip 64 68 65 $sth = "select rawExp.dateobs,chipRun.state,rawExp.filter,count(chipRun.state),chipRun.data_group,chipRun.dist_group from chipRun JOIN rawExp using (exp_id) where chipRun.label LIKE '%nightlys tack' GROUP BY data_group,filter,state ORDER BY dateobs";69 $sth = "select rawExp.dateobs,chipRun.state,rawExp.filter,count(chipRun.state),chipRun.data_group,chipRun.dist_group from chipRun JOIN rawExp using (exp_id) where chipRun.label LIKE '%nightlyscience' GROUP BY data_group,filter,state ORDER BY dateobs"; 66 70 67 71 $data_ref = $db->selectall_arrayref( $sth ); … … 133 137 134 138 #warps 135 $sth = "select rawExp.dateobs,warpRun.state,rawExp.filter,count(warpRun.state),warpRun.data_group,warpRun.dist_group from warpRun JOIN fakeRun using (fake_id) JOIN camRun using (cam_id) JOIN chipRun using (chip_id) JOIN rawExp using (exp_id) where warpRun.label LIKE '%nightlys tack' GROUP BY data_group,filter,state ORDER BY data_group,filter";139 $sth = "select rawExp.dateobs,warpRun.state,rawExp.filter,count(warpRun.state),warpRun.data_group,warpRun.dist_group from warpRun JOIN fakeRun using (fake_id) JOIN camRun using (cam_id) JOIN chipRun using (chip_id) JOIN rawExp using (exp_id) where warpRun.label LIKE '%nightlyscience' GROUP BY data_group,filter,state ORDER BY data_group,filter"; 136 140 $data_ref = $db->selectall_arrayref( $sth ); 137 141 … … 175 179 176 180 177 $sth = "select state,count(skycell_id),data_group,dist_group,filter from stackRun where label LIKE '%nightlys tack' group by data_group,filter,state";181 $sth = "select state,count(skycell_id),data_group,dist_group,filter from stackRun where label LIKE '%nightlyscience' group by data_group,filter,state"; 178 182 $data_ref = $db->selectall_arrayref( $sth ); 179 183 … … 245 249 # distribution 246 250 247 $sth = "select distRun.data_group,dist_group,filter,count(stage_id) from distRun JOIN stackRun ON (stage_id = stack_id) where distRun.label LIKE '%.nightlys tack' AND distRun.state = 'full' GROUP BY distRun.data_group,filter";251 $sth = "select distRun.data_group,dist_group,filter,count(stage_id) from distRun JOIN stackRun ON (stage_id = stack_id) where distRun.label LIKE '%.nightlyscience' AND distRun.state = 'full' GROUP BY distRun.data_group,filter"; 248 252 249 253 $data_ref = $db->selectall_arrayref( $sth ); … … 284 288 # faulted distributed 285 289 286 $sth = "select * from rcDSFileset join distRun using(dist_id) where rcDSFileset.fault > 0 and date(registered) >= '2010-01-01' AND label LIKE 'M%.nightlys tack' order by fs_id asc";290 $sth = "select * from rcDSFileset join distRun using(dist_id) where rcDSFileset.fault > 0 and date(registered) >= '2010-01-01' AND label LIKE 'M%.nightlyscience' order by fs_id asc"; 287 291 $data_ref = $db->selectall_arrayref( $sth ); 288 292
Note:
See TracChangeset
for help on using the changeset viewer.
