IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 25, 2012, 10:05:21 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20120905/ippMonitor
Files:
5 edited
5 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120905/ippMonitor

  • branches/eam_branches/ipp-20120905/ippMonitor/Makefile.in

    r33847 r34466  
    1414PROGRAMS = \
    1515$(DESTBIN)/skyplot.dvo \
     16$(DESTBIN)/skycellplot.dvo \
    1617$(DESTBIN)/czartool_getServerStatus.pl \
    1718$(DESTBIN)/czartool_revert.pl \
     
    5758$(DESTWWW)/simplePlotraw.php \
    5859$(DESTWWW)/skyplot.php \
     60$(DESTWWW)/skycellplot.php \
    5961$(DESTWWW)/getimage.php \
    6062$(DESTWWW)/ipp.czartool.dat \
     
    211213$(DESTWWW)/simplePlotChipImage.php \
    212214$(DESTWWW)/simplePlotCamImage.php \
     215$(DESTWWW)/simplePlotStackImage.php \
     216$(DESTWWW)/simplePlotStaticskyImage.php \
     217$(DESTWWW)/simplePlotSkycalImage.php \
    213218$(DESTWWW)/histogramBackgroundImage.php \
    214219$(DESTWWW)/histogramCamProcessedExpImage.php \
  • branches/eam_branches/ipp-20120905/ippMonitor/def/simplePlotCamImage.d

    r34189 r34466  
    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
  • branches/eam_branches/ipp-20120905/ippMonitor/raw/ipp.plots.dat

    r28604 r34466  
    55menulink  | menuselect      | link    | Simple plot - chip                  | simplePlotChipImage.php
    66menulink  | menuselect      | link    | Simple plot - cam                   | simplePlotCamImage.php
     7menulink  | menuselect      | link    | Simple plot - stack                 | simplePlotStackImage.php
     8menulink  | menuselect      | link    | Simple plot - staticsky             | simplePlotStaticskyImage.php
     9menulink  | menuselect      | link    | Simple plot - skycal             | simplePlotSkycalImage.php
    710
    811menutop   | menutop      | plain   |                                   |
  • branches/eam_branches/ipp-20120905/ippMonitor/raw/simplePlotcam.php

    r31102 r34466  
    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.