Changeset 34772 for branches/czw_branch/20120906/ippMonitor
- Timestamp:
- Dec 6, 2012, 6:32:19 PM (14 years ago)
- Location:
- branches/czw_branch/20120906/ippMonitor
- Files:
-
- 11 edited
- 7 copied
-
. (modified) (1 prop)
-
INSTALL (modified) (1 diff)
-
Makefile.in (modified) (4 diffs)
-
czartool/czartool/czarconfig.xml (modified) (1 diff)
-
def/failedStaticsky.d (copied) (copied from trunk/ippMonitor/def/failedStaticsky.d )
-
def/simplePlotCamImage.d (modified) (3 diffs)
-
def/simplePlotSkycalImage.d (copied) (copied from trunk/ippMonitor/def/simplePlotSkycalImage.d )
-
def/simplePlotStackImage.d (copied) (copied from trunk/ippMonitor/def/simplePlotStackImage.d )
-
def/simplePlotStaticskyImage.d (copied) (copied from trunk/ippMonitor/def/simplePlotStaticskyImage.d )
-
def/staticsky_failure.d (copied) (copied from trunk/ippMonitor/def/staticsky_failure.d )
-
raw/czartool_labels.php (modified) (2 diffs)
-
raw/ipp.php (modified) (3 diffs)
-
raw/ipp.plots.dat (modified) (1 diff)
-
raw/ipp.stack.dat (modified) (1 diff)
-
raw/simplePlotcam.php (modified) (8 diffs)
-
raw/site.php.in (modified) (1 diff)
-
raw/skycellplot.php (copied) (copied from trunk/ippMonitor/raw/skycellplot.php )
-
scripts/skycellplot.dvo (copied) (copied from trunk/ippMonitor/scripts/skycellplot.dvo ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/ippMonitor
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120905/ippMonitor (added) merged: 34428,34466,34566,34575,34735,34747
- Property svn:mergeinfo changed
-
branches/czw_branch/20120906/ippMonitor/INSTALL
r34006 r34772 24 24 # Note: we use a 'science databases (replication) slave' and the ippMonitor read-only account to connect to that database 25 25 psconfigure --dbhost scidbs1 --dbuser ippMonitor --dbpass ippMonitor --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 26 27 psconfigure --dbhost scidbm --dbuser ipp --dbpass ipp --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 28 -
branches/czw_branch/20120906/ippMonitor/Makefile.in
r33847 r34772 14 14 PROGRAMS = \ 15 15 $(DESTBIN)/skyplot.dvo \ 16 $(DESTBIN)/skycellplot.dvo \ 16 17 $(DESTBIN)/czartool_getServerStatus.pl \ 17 18 $(DESTBIN)/czartool_revert.pl \ … … 57 58 $(DESTWWW)/simplePlotraw.php \ 58 59 $(DESTWWW)/skyplot.php \ 60 $(DESTWWW)/skycellplot.php \ 59 61 $(DESTWWW)/getimage.php \ 60 62 $(DESTWWW)/ipp.czartool.dat \ … … 211 213 $(DESTWWW)/simplePlotChipImage.php \ 212 214 $(DESTWWW)/simplePlotCamImage.php \ 215 $(DESTWWW)/simplePlotStackImage.php \ 216 $(DESTWWW)/simplePlotStaticskyImage.php \ 217 $(DESTWWW)/simplePlotSkycalImage.php \ 213 218 $(DESTWWW)/histogramBackgroundImage.php \ 214 219 $(DESTWWW)/histogramCamProcessedExpImage.php \ … … 235 240 $(DESTWWW)/lapRuns.php \ 236 241 $(DESTWWW)/lapExposures.php \ 237 $(DESTWWW)/lapStacks.php 242 $(DESTWWW)/lapStacks.php \ 243 $(DESTWWW)/failedStaticsky.php \ 244 $(DESTWWW)/staticsky_failure.php 238 245 239 246 PICTURES = \ -
branches/czw_branch/20120906/ippMonitor/czartool/czartool/czarconfig.xml
r34006 r34772 19 19 20 20 <!-- gpc1 Db section --> 21 <!-- <gpc1database> --> 22 <!-- <name>gpc1</name> --> 23 <!-- <host>scidbs1</host> --> 24 <!-- <user>ippMonitor</user> --> 25 <!-- <password>ippMonitor</password> --> 26 <!-- </gpc1database> --> 21 27 <gpc1database> 22 28 <name>gpc1</name> 23 <host>scidb s1</host>24 <user>ipp Monitor</user>25 <password>ipp Monitor</password>29 <host>scidbm</host> 30 <user>ippuser</user> 31 <password>ippuser</password> 26 32 </gpc1database> 27 33 -
branches/czw_branch/20120906/ippMonitor/def/simplePlotCamImage.d
r34189 r34772 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 -
branches/czw_branch/20120906/ippMonitor/raw/czartool_labels.php
r34316 r34772 219 219 showReplicationsStatus($REPL_HOST_IPPADMIN, $REPL_USER_IPPADMIN, $REPL_PASSWORD_IPPADMIN, $REPL_DBNAME_IPPADMIN); 220 220 showReplicationsStatus($REPL_HOST_ISP, $REPL_USER_ISP, $REPL_PASSWORD_ISP, $REPL_DBNAME_ISP); 221 showReplicationsStatus($REPL_HOST_NEBULOUS_SECONDARY, $REPL_USER_NEBULOUS_SECONDARY, $REPL_PASSWORD_NEBULOUS_SECONDARY, $REPL_DBNAME_NEBULOUS_SECONDARY); 221 222 echo "</table>"; 222 223 … … 464 465 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 465 466 466 $link = $defaultlink;467 $link = "failedStaticsky.php?pass=" . $pass . "&proj=" . $proj . "&staticskyRun.label=" . $thisLabel . "&staticskyRun.state=".$searchState; 467 468 getStateAndFaults($db, $thisLabel, $selectedState, "staticsky", $str, $anyFaults); 468 469 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); -
branches/czw_branch/20120906/ippMonitor/raw/ipp.php
r30454 r34772 799 799 // echo "<b>class_id: $class_id</b><br>\n"; 800 800 // echo "<b>camera: $camera</b><br>\n"; 801 // echo "<b>filerule: $filerule</b><br>\n"; 801 802 802 803 if (! $class_id) { $class_id = "NONE"; } 803 804 805 //SCH: I set a default value for the 'camera' which is based on the 806 //'proj' parameter. 807 //It's necessary for staticsky logs and it would require to join tables 808 //back to the warpRun table 809 if (! $camera) { $camera = strtoupper($_GET['proj']); } 810 804 811 if ($basename && $camera && $filerule) { 805 806 812 // do I need to do this to the output result as well? 807 813 $basename = escapeshellarg($basename); … … 841 847 return; 842 848 } 849 echo "<b>log filename: $filename</b><br>\n"; 843 850 844 851 echo "<pre>\n"; … … 850 857 } 851 858 } 859 852 860 853 861 // expect image supplied with key=name -
branches/czw_branch/20120906/ippMonitor/raw/ipp.plots.dat
r28604 r34772 5 5 menulink | menuselect | link | Simple plot - chip | simplePlotChipImage.php 6 6 menulink | menuselect | link | Simple plot - cam | simplePlotCamImage.php 7 menulink | menuselect | link | Simple plot - stack | simplePlotStackImage.php 8 menulink | menuselect | link | Simple plot - staticsky | simplePlotStaticskyImage.php 9 menulink | menuselect | link | Simple plot - skycal | simplePlotSkycalImage.php 7 10 8 11 menutop | menutop | plain | | -
branches/czw_branch/20120906/ippMonitor/raw/ipp.stack.dat
r28654 r34772 36 36 menulink | menuselect | link | Static Sky Processed Skyfile | staticskyProcessedSkyfile.php 37 37 menulink | menuselect | link | Static Sky Failed Skyfile | staticskyFailedSkyfile.php 38 menulink | menuselect | link | Static Sky Failed | failedStaticsky.php -
branches/czw_branch/20120906/ippMonitor/raw/simplePlotcam.php
r31102 r34772 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); -
branches/czw_branch/20120906/ippMonitor/raw/site.php.in
r34007 r34772 47 47 $REPL_DBNAME_ISP = "ippc17 (isp)"; 48 48 49 $REPL_HOST_NEBULOUS_SECONDARY = "ippdb04.IfA.Hawaii.Edu"; 50 $REPL_USER_NEBULOUS_SECONDARY = "ippMonitor"; 51 $REPL_PASSWORD_NEBULOUS_SECONDARY = "ippMonitor"; 52 $REPL_DBNAME_NEBULOUS_SECONDARY = "ippdb04 (secondary nebulous / 50,000 sec behind is acceptable / usually stopped on Mondays and Tuesdays)"; 53 54 $REPL_HOST_NEBULOUS_TERNARY = "ippc63.IfA.Hawaii.Edu"; 55 $REPL_USER_NEBULOUS_TERNARY = "ippMonitor"; 56 $REPL_PASSWORD_NEBULOUS_TERNARY = "ippMonitor"; 57 $REPL_DBNAME_NEBULOUS_TERNARY = "ippc63 (secondary nebulous / 50,000 sec behind is acceptable / usually stopped on Mondays and Tuesdays)"; 49 58 50 59 -
branches/czw_branch/20120906/ippMonitor/scripts/skycellplot.dvo
r34678 r34772 27 27 1.1 28 28 0.3 29 0.3 30 0.3 31 0.3 32 0.3 33 0.3 29 0.3001 30 0.3002 31 0.3003 32 0.3004 33 0.3005 34 34 end 35 35
Note:
See TracChangeset
for help on using the changeset viewer.
