IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40427 for trunk


Ignore:
Timestamp:
May 15, 2018, 9:46:33 AM (8 years ago)
Author:
eugene
Message:

add column of exposures which have been dropped or manually excluded

File:
1 edited

Legend:

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

    r40359 r40427  
    357357    echo $table;
    358358    echo "<tr>";
    359     createTableTitle("Status of last night's data", 3);
     359    createTableTitle("Status of last night's data", 4);
    360360    echo "<tr>";
    361361    createTableColumnHeader("Exposure type");
    362362    createTableColumnHeader("At summit");
    363363    createTableColumnHeader("Registered at MHPCC");
     364    createTableColumnHeader("At summit (Dropped)");
    364365
    365366    $msg = "No science images taken since $date";
     
    368369    while ($qry->fetchInto($expType)) {
    369370
    370         $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]'";
     371        $sql = "SELECT COUNT(*) FROM summitExp left join pzDownloadExp using (summit_id) WHERE dateobs > '$date' AND exp_type = '$expType[0]' and (state != 'drop' or state is null) and fault != 1042";
     372#       $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]'";
    371373        $qry2 = $projectdb->query($sql);
    372374        $qry2->fetchInto($summit);
     375
    373376        $sql = "SELECT COUNT(*) FROM summitExp JOIN rawExp ON summitExp.exp_name = rawExp.exp_name WHERE summitExp.dateobs > '$date' AND rawExp.dateobs > '$date' AND summitExp.exp_type = '$expType[0]'";
    374377        $qry2 = $projectdb->query($sql);
    375378        $qry2->fetchInto($mhpcc);
    376379
     380        $sql = "SELECT COUNT(*) FROM summitExp join pzDownloadExp using (summit_id) WHERE dateobs > '$date' AND exp_type = '$expType[0]' and state = 'drop'";
     381        $qry2 = $projectdb->query($sql);
     382        $qry2->fetchInto($dropped);
     383
    377384        echo "<tr>";
    378385
     
    382389        echo "<td>$expType[0]</td>";
    383390        echo "<td>$summit[0]</td>";
    384        
    385391        createFormattedTableCell("", "", $mhpcc[0], $error, 0);
     392        echo "<td>$dropped[0]</td>";
    386393
    387394        echo "</tr>";
Note: See TracChangeset for help on using the changeset viewer.