IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41202 for trunk/ippMonitor


Ignore:
Timestamp:
Dec 12, 2019, 12:50:32 PM (7 years ago)
Author:
tdeboer
Message:

change to reporting of overridden exps

Location:
trunk/ippMonitor/raw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/czartool_labels.php

    r41192 r41202  
    464464    #do a query of raw/chip/cam/warp counts for this night, split by chunk.
    465465    #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 ";
    467467    $query .= "    (SELECT substr(comment, 1, position(' ' in comment)) AS chunk,count(if(rawExp.comment LIKE '%visit 1%',1,NULL)) AS Nvis1,";
    468468    $query .= "    count(if(rawExp.comment LIKE '%visit 2%',1,NULL)) AS Nvis2,count(if(rawExp.comment LIKE '%visit 3%',1,NULL)) AS Nvis3,";
    469469    $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";
    471473    $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)";
    472474    $query .= "    WHERE dateobs like '$date%' AND exp_id > $refExpID[0] AND exp_type = 'OBJECT' AND rawExp.comment like '%visit%'";
     
    522524        $NexpWWdiff = 0;
    523525        $Npubwarps = 0;
     526        $uniNvis1 = 0;
     527        $uniNvis2 = 0;
     528        $uniNvis3 = 0;
     529        $uniNvis4 = 0;
    524530
    525531        $chunkname = $row[0];
     
    532538        if($row[7] > 0) $Nwarpgood = $row[7];
    533539        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];
    534544
    535545        #set flags if present
     
    603613        if(($NWWdiffbad >= 1) or ($NWSdiffbad >= 1)) $baddiffflag = 1;
    604614
    605         if ($Nvis1 != $Nvis4) {
     615        if (($uniNvis1 != $uniNvis2) or ($uniNvis1 != $uniNvis3) or ($uniNvis1 != $uniNvis4)) {
    606616          if ($NWWdiffpub != $NexpWWdiff) $complete = "chunk incomplete, not done"; 
    607617          if ($NWWdiffpub == $NexpWWdiff) $complete = "chunk incomplete, done"; 
    608618        }
    609         if ($Nvis1 == $Nvis4) {
     619        if (($uniNvis1 == $uniNvis2) and ($uniNvis1 == $uniNvis3) and ($uniNvis1 == $uniNvis4)) {
    610620          if ($NWWdiffpub != $NexpWWdiff) $complete = "chunk complete, not done"; 
    611621          if ($NWWdiffpub == $NexpWWdiff) $complete = "chunk complete, done"; 
    612 
    613622        }
    614623
  • trunk/ippMonitor/raw/ipp.plots.dat

    r38200 r41202  
    99menulink  | menuselect      | link    | Simple plot - skycal                | simplePlotSkycalImage.php
    1010menulink  | menuselect      | link    | Simple plot - fforce                | simplePlotFullForceImage.php
    11 menulink  | menuselect      | link    | Simple plot - chip queue            | simplePlotChipQueue.php
    1211menulink  | menuselect      | link    | Simple plot - diff                  | simplePlotDiffImage.php
    1312menulink  | menuselect      | link    | Subset plot - diff                  | subsetPlotDiffImage.php
Note: See TracChangeset for help on using the changeset viewer.