Changeset 41202
- Timestamp:
- Dec 12, 2019, 12:50:32 PM (7 years ago)
- Location:
- trunk/ippMonitor/raw
- Files:
-
- 2 edited
-
czartool_labels.php (modified) (4 diffs)
-
ipp.plots.dat (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r41192 r41202 464 464 #do a query of raw/chip/cam/warp counts for this night, split by chunk. 465 465 #we need to do a subquery to find the total number of skycells in warpSkyfile, as well as the number of those with a bad quality 466 $query = "SELECT suba.chunk,suba.Nvis1,suba.Nvis2,suba.Nvis3,suba.Nvis4,suba.Ncamgood,suba.Ncambad,subb.Nwarpgood,subb.Nwarpbad FROM ";466 $query = "SELECT suba.chunk,suba.Nvis1,suba.Nvis2,suba.Nvis3,suba.Nvis4,suba.Ncamgood,suba.Ncambad,subb.Nwarpgood,subb.Nwarpbad,suba.uniNvis1,suba.uniNvis2,suba.uniNvis3,suba.uniNvis4 FROM "; 467 467 $query .= " (SELECT substr(comment, 1, position(' ' in comment)) AS chunk,count(if(rawExp.comment LIKE '%visit 1%',1,NULL)) AS Nvis1,"; 468 468 $query .= " count(if(rawExp.comment LIKE '%visit 2%',1,NULL)) AS Nvis2,count(if(rawExp.comment LIKE '%visit 3%',1,NULL)) AS Nvis3,"; 469 469 $query .= " count(if(rawExp.comment LIKE '%visit 4%',1,NULL)) AS Nvis4, count(if(camProcessedExp.sigma_ra <= 5 AND camProcessedExp.sigma_dec <= 5 AND camProcessedExp.quality = 0,1,NULL)) AS Ncamgood,"; 470 $query .= " count(if(camProcessedExp.sigma_ra > 5 OR camProcessedExp.sigma_dec > 5 OR camProcessedExp.quality > 0,1,NULL)) AS Ncambad"; 470 $query .= " count(if(camProcessedExp.sigma_ra > 5 OR camProcessedExp.sigma_dec > 5 OR camProcessedExp.quality > 0,1,NULL)) AS Ncambad, COUNT(DISTINCT CASE WHEN rawExp.comment LIKE '%visit 1%' THEN rawExp.comment END) AS uniNvis1,"; 471 $query .= " COUNT(DISTINCT CASE WHEN rawExp.comment LIKE '%visit 2%' THEN rawExp.comment END) AS uniNvis2,COUNT(DISTINCT CASE WHEN rawExp.comment LIKE '%visit 3%' THEN rawExp.comment END) AS uniNvis3,"; 472 $query .= " COUNT(DISTINCT CASE WHEN rawExp.comment LIKE '%visit 4%' THEN rawExp.comment END) AS uniNvis4"; 471 473 $query .= " FROM rawExp LEFT JOIN chipRun USING (exp_id) LEFT JOIN camRun USING (chip_id) JOIN camProcessedExp USING (cam_id) LEFT JOIN fakeRun USING (cam_id) LEFT JOIN warpRun USING (fake_id)"; 472 474 $query .= " WHERE dateobs like '$date%' AND exp_id > $refExpID[0] AND exp_type = 'OBJECT' AND rawExp.comment like '%visit%'"; … … 522 524 $NexpWWdiff = 0; 523 525 $Npubwarps = 0; 526 $uniNvis1 = 0; 527 $uniNvis2 = 0; 528 $uniNvis3 = 0; 529 $uniNvis4 = 0; 524 530 525 531 $chunkname = $row[0]; … … 532 538 if($row[7] > 0) $Nwarpgood = $row[7]; 533 539 if($row[8] > 0) $Nwarpbad = $row[8]; 540 if($row[9] > 0) $uniNvis1 = $row[9]; 541 if($row[10] > 0) $uniNvis2 = $row[10]; 542 if($row[11] > 0) $uniNvis3 = $row[11]; 543 if($row[12] > 0) $uniNvis4 = $row[12]; 534 544 535 545 #set flags if present … … 603 613 if(($NWWdiffbad >= 1) or ($NWSdiffbad >= 1)) $baddiffflag = 1; 604 614 605 if ( $Nvis1 != $Nvis4) {615 if (($uniNvis1 != $uniNvis2) or ($uniNvis1 != $uniNvis3) or ($uniNvis1 != $uniNvis4)) { 606 616 if ($NWWdiffpub != $NexpWWdiff) $complete = "chunk incomplete, not done"; 607 617 if ($NWWdiffpub == $NexpWWdiff) $complete = "chunk incomplete, done"; 608 618 } 609 if ( $Nvis1 == $Nvis4) {619 if (($uniNvis1 == $uniNvis2) and ($uniNvis1 == $uniNvis3) and ($uniNvis1 == $uniNvis4)) { 610 620 if ($NWWdiffpub != $NexpWWdiff) $complete = "chunk complete, not done"; 611 621 if ($NWWdiffpub == $NexpWWdiff) $complete = "chunk complete, done"; 612 613 622 } 614 623 -
trunk/ippMonitor/raw/ipp.plots.dat
r38200 r41202 9 9 menulink | menuselect | link | Simple plot - skycal | simplePlotSkycalImage.php 10 10 menulink | menuselect | link | Simple plot - fforce | simplePlotFullForceImage.php 11 menulink | menuselect | link | Simple plot - chip queue | simplePlotChipQueue.php12 11 menulink | menuselect | link | Simple plot - diff | simplePlotDiffImage.php 13 12 menulink | menuselect | link | Subset plot - diff | subsetPlotDiffImage.php
Note:
See TracChangeset
for help on using the changeset viewer.
