Changeset 34431
- Timestamp:
- Sep 11, 2012, 3:47:07 PM (14 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 2 edited
-
def/simplePlotCamImage.d (modified) (3 diffs)
-
raw/simplePlotcam.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/def/simplePlotCamImage.d
r34189 r34431 1 TABLE cam Run, chipRun, rawExp1 TABLE camProcessedExp, camRun, chipRun, rawExp 2 2 TITLE New sky plot - cam 3 3 FILE simplePlotCamImage.php … … 7 7 WHERE chipRun.exp_id = rawExp.exp_id 8 8 WHERE camRun.chip_id = chipRun.chip_id 9 WHERE camProcessedExp.cam_id = camRun.cam_id 9 10 10 11 # field size format name show link to extras … … 24 25 FIELD rawExp.bg, 5, %.2f, backgnd, restrict 25 26 FIELD rawExp.bg_stdev, 5, %.2f, stdev, restrict 27 FIELD camProcessedExp.fwhm_major, 5, %.2f, FWHM_major, restrict 26 28 27 29 # What to plot -
trunk/ippMonitor/raw/simplePlotcam.php
r31102 r34431 28 28 // define restrictiosn to the queries 29 29 // ** 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"; 31 31 $WHERE = check_restrict ('rawExp.exp_name', $WHERE, 'string', 1.0); 32 32 $WHERE = check_restrict ('rawExp.exp_id', $WHERE, 'string', 1.0); … … 62 62 $WHERE = check_restrict ('rawExp.bg_stdev', $WHERE, 'max', 1.0); 63 63 $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); 64 67 $WHERE = check_ordering ('', $WHERE); 65 68 … … 73 76 74 77 // get the result table count 75 $sql = "SELECT count(*) FROM cam Run, chipRun, rawExp $WHERE";78 $sql = "SELECT count(*) FROM camProcessedExp, camRun, chipRun, rawExp $WHERE"; 76 79 77 80 $qry = $db->query($sql); 78 81 if (dberror($qry)) { 79 echo "<b>error reading cam Run, chipRun, rawExp table count</b><br>\n";82 echo "<b>error reading camProcessedExp, camRun, chipRun, rawExp table count</b><br>\n"; 80 83 echo "<br><small><b> count query : $sql </b></small><br>\n"; 81 84 menu_end(); 82 85 } 83 86 if (!$qry->fetchInto($row)) { 84 echo "<b>error reading cam Run, chipRun, rawExp table count</b><br>\n";87 echo "<b>error reading camProcessedExp, camRun, chipRun, rawExp table count</b><br>\n"; 85 88 echo "<br><small><b> count query : $sql </b></small><br>\n"; 86 89 menu_end(); … … 128 131 $buttonLink = button_restrict_max ('rawExp.bg_stdev', $buttonLink); 129 132 $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); 131 136 // set up the table 132 137 echo "<table class=list>\n"; … … 181 186 write_header_cell ("list", "stdev "); 182 187 write_header_cell ("list", "Date/Time"); 188 write_header_cell ("list", "Cam FWHM_major"); 183 189 echo "</tr>\n"; 184 190 … … 193 199 write_query_row ('rawExp.bg_stdev', 5, 'min'); 194 200 write_query_row ('rawExp.dateobs', 19, 'min'); 201 write_query_row ('camProcessedExp.fwhm_major', 5, 'min'); 195 202 echo "</tr><tr><td>≤</td>\n"; 196 203 echo "<td> </td>\n"; … … 201 208 write_query_row ('rawExp.bg_stdev', 5, 'max'); 202 209 write_query_row ('rawExp.dateobs', 19, 'max'); 210 write_query_row ('camProcessedExp.fwhm_major', 5, 'max'); 203 211 echo "</tr>\n"; 204 212 … … 228 236 229 237 // query the database 230 $sql = "SELECT rawExp.ra,rawExp.decl,rawExp.filter FROM cam Run, chipRun, rawExp $WHERE";238 $sql = "SELECT rawExp.ra,rawExp.decl,rawExp.filter FROM camProcessedExp, camRun, chipRun, rawExp $WHERE"; 231 239 232 240 $qry = $db->query($sql);
Note:
See TracChangeset
for help on using the changeset viewer.
