IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34431


Ignore:
Timestamp:
Sep 11, 2012, 3:47:07 PM (14 years ago)
Author:
mhuber
Message:

(MEH) added camProcessedExp.fwhm_major as query option to cam simple plot

Location:
trunk/ippMonitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/simplePlotCamImage.d

    r34189 r34431  
    1 TABLE camRun, chipRun, rawExp
     1TABLE camProcessedExp, camRun, chipRun, rawExp
    22TITLE New sky plot - cam
    33FILE  simplePlotCamImage.php
     
    77WHERE chipRun.exp_id = rawExp.exp_id
    88WHERE camRun.chip_id = chipRun.chip_id
     9WHERE camProcessedExp.cam_id = camRun.cam_id
    910
    1011#    field                size  format  name           show     link to         extras
     
    2425FIELD rawExp.bg,                  5, %.2f,   backgnd,         restrict
    2526FIELD rawExp.bg_stdev,            5, %.2f,   stdev,           restrict
     27FIELD camProcessedExp.fwhm_major, 5, %.2f,   FWHM_major,      restrict     
    2628
    2729# What to plot
  • trunk/ippMonitor/raw/simplePlotcam.php

    r31102 r34431  
    2828// define restrictiosn to the queries
    2929// ** TABLE RESTRICTIONS **
    30 $WHERE = "WHERE camRun.state != 'new' AND chipRun.exp_id = rawExp.exp_id AND camRun.chip_id = chipRun.chip_id";
     30$WHERE = "WHERE camRun.state != 'new' AND chipRun.exp_id = rawExp.exp_id AND camRun.chip_id = chipRun.chip_id AND camProcessedExp.cam_id = camRun.cam_id";
    3131$WHERE = check_restrict ('rawExp.exp_name', $WHERE, 'string', 1.0);
    3232$WHERE = check_restrict ('rawExp.exp_id', $WHERE, 'string', 1.0);
     
    6262$WHERE = check_restrict ('rawExp.bg_stdev', $WHERE, 'max', 1.0);
    6363$WHERE = check_restrict ('rawExp.comment', $WHERE, 'string', 1.0);
     64$WHERE = check_restrict ('camProcessedExp.fwhm_major', $WHERE, 'string', 1.0);
     65$WHERE = check_restrict ('camProcessedExp.fwhm_major', $WHERE, 'min', 1.0);
     66$WHERE = check_restrict ('camProcessedExp.fwhm_major', $WHERE, 'max', 1.0);
    6467$WHERE = check_ordering ('', $WHERE);
    6568
     
    7376
    7477// get the result table count
    75 $sql = "SELECT count(*) FROM camRun, chipRun, rawExp $WHERE";
     78$sql = "SELECT count(*) FROM camProcessedExp, camRun, chipRun, rawExp $WHERE";
    7679
    7780$qry = $db->query($sql);
    7881if (dberror($qry)) {
    79   echo "<b>error reading camRun, chipRun, rawExp table count</b><br>\n";
     82  echo "<b>error reading camProcessedExp, camRun, chipRun, rawExp table count</b><br>\n";
    8083  echo "<br><small><b> count query : $sql </b></small><br>\n";
    8184  menu_end();
    8285}
    8386if (!$qry->fetchInto($row)) {
    84   echo "<b>error reading camRun, chipRun, rawExp table count</b><br>\n";
     87  echo "<b>error reading camProcessedExp, camRun, chipRun, rawExp table count</b><br>\n";
    8588  echo "<br><small><b> count query : $sql </b></small><br>\n";
    8689  menu_end();
     
    128131$buttonLink = button_restrict_max ('rawExp.bg_stdev', $buttonLink);
    129132$buttonLink = button_restrict_string ('rawExp.comment', $buttonLink);
    130 
     133$buttonLink = button_restrict_string ('camProcessedExp.fwhm_major', $buttonLink);
     134$buttonLink = button_restrict_min ('camProcessedExp.fwhm_major', $buttonLink);
     135$buttonLink = button_restrict_max ('camProcessedExp.fwhm_major', $buttonLink);
    131136// set up the table
    132137echo "<table class=list>\n";
     
    181186write_header_cell ("list", "stdev    ");
    182187write_header_cell ("list", "Date/Time");
     188write_header_cell ("list", "Cam FWHM_major");
    183189echo "</tr>\n";
    184190
     
    193199write_query_row ('rawExp.bg_stdev', 5, 'min');
    194200write_query_row ('rawExp.dateobs', 19, 'min');
     201write_query_row ('camProcessedExp.fwhm_major', 5, 'min');
    195202echo "</tr><tr><td>&le;</td>\n";
    196203echo "<td> &nbsp; </td>\n";
     
    201208write_query_row ('rawExp.bg_stdev', 5, 'max');
    202209write_query_row ('rawExp.dateobs', 19, 'max');
     210write_query_row ('camProcessedExp.fwhm_major', 5, 'max');
    203211echo "</tr>\n";
    204212
     
    228236
    229237// query the database
    230 $sql = "SELECT rawExp.ra,rawExp.decl,rawExp.filter FROM camRun, chipRun, rawExp $WHERE";
     238$sql = "SELECT rawExp.ra,rawExp.decl,rawExp.filter FROM camProcessedExp, camRun, chipRun, rawExp $WHERE";
    231239
    232240$qry = $db->query($sql);
Note: See TracChangeset for help on using the changeset viewer.