Changeset 40478
- Timestamp:
- Jun 27, 2018, 3:22:45 PM (8 years ago)
- Location:
- branches/czw_branch/20170908/ippMonitor
- Files:
-
- 11 edited
- 2 copied
-
. (modified) (1 prop)
-
INSTALL (modified) (1 diff)
-
Makefile.in (modified) (1 diff)
-
czartool/czartool/CzarDb.pm (modified) (1 diff)
-
raw/czartool_labels.php (copied) (copied from trunk/ippMonitor/raw/czartool_labels.php )
-
raw/czartool_labels_old.php (copied) (copied from trunk/ippMonitor/raw/czartool_labels_old.php )
-
raw/getimage.php (modified) (3 diffs)
-
raw/ipp.czar.dat (modified) (1 diff)
-
raw/ipp.php (modified) (1 diff)
-
raw/site.php.in (modified) (1 diff)
-
raw/skyplot.php (modified) (3 diffs)
-
scripts/skycellplot.dvo (modified) (2 diffs)
-
scripts/skyplot.dvo (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20170908/ippMonitor
-
Property svn:mergeinfo
set to
/branches/czw_branch/20160809/ippMonitor merged eligible /trunk/ippMonitor merged eligible
-
Property svn:mergeinfo
set to
-
branches/czw_branch/20170908/ippMonitor/INSTALL
r38216 r40478 1 2 # below are commands to configure ippMonitor 1 3 2 4 # we have moved all user/password info into config.dat (see config.dat.in for an example) 5 6 # --site defines the location of the ipp configuration site-specific information 3 7 # note that we have a special version for ippmonitor without $PSCONFIG/$PSCONFDIR values: 8 # --site ~/ippconfig/ippmonitor.config 9 10 # set psconfig to use a different build from the standard ops tag. This allows 11 # testing of those parts of ippMonitor which depend on IPP code without modifyin 12 # the operational installation 13 psconfig ipp-trunk-20180515 14 15 # run psconfigure to generate Makefile and raw/site.php 4 16 psconfigure --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 17 18 # install the php code: 19 make -
branches/czw_branch/20170908/ippMonitor/Makefile.in
r38221 r40478 64 64 $(DESTWWW)/ipp.czartool.dat \ 65 65 $(DESTWWW)/czartool_labels.php \ 66 $(DESTWWW)/czartool_labels_old.php \ 66 67 $(DESTWWW)/czartool_getplot.php \ 67 68 $(DESTWWW)/czartool_exposures.php \ -
branches/czw_branch/20170908/ippMonitor/czartool/czartool/CzarDb.pm
r40095 r40478 277 277 my $size = scalar @{$labels}; 278 278 if ($size < 1) { return; } 279 # CZW: 2014-09-12 edit to force in lanl labels280 279 if ($server eq 'stdscience') { 281 ## EAM : these should no longer be needed 282 ## MEH 20150921 manuall add WS labels while in ippqub stdscience 283 ## push @{$labels}, 'OSS.WS.nightlyscience'; 284 ## push @{$labels}, 'MSS.WS.nightlyscience'; 285 ## push @{$labels}, 'ESS.WS.nightlyscience'; 286 ## push @{$labels}, 'ThreePi.WS.nightlyscience'; 287 ## push @{$labels}, 'SNIa.WS.nightlyscience'; 288 ## push @{$labels}, 'QUB.WS.nightlyscience'; 289 ## push @{$labels}, 'QUB.SS.nightlyscience'; 290 ## push @{$labels}, 'ps_ud_QUB'; 291 ## push @{$labels}, 'snia_update'; 292 ## #push @{$labels}, 'CFA.WS.nightlyscience'; 293 ## #push @{$labels}, 'CFA.SS.nightlyscience'; 294 ## push @{$labels}, 'FSS.WS.nightlyscience'; 295 ## #push @{$labels}, 'NCU.ref.20161026'; 296 ## #push @{$labels}, 'NCU.ref.20161026.update'; 297 ## #push @{$labels}, 'NCU.WS.nightlyscience'; 298 ## #push @{$labels}, 'NCU.SS.nightlyscience'; 299 ## #push @{$labels}, 'QUB.lowdec.20160712'; 300 ## #push @{$labels}, 'PSNSC.wref.20161201'; 301 ## push @{$labels}, 'PSNSC.wref.20170707'; 302 #push @{$labels}, 'QUB.lowdec.20170707'; 303 #push @{$labels}, 'SAS.20151208'; 304 ## MEH 20150928 manually add MD.PV3 WS labels too 305 #push @{$labels}, 'MD01.PV3.WSdiff.20150312'; 306 #push @{$labels}, 'MD02.PV3.WSdiff.20150312'; 307 #push @{$labels}, 'MD03.PV3.WSdiff.20150312'; 308 #push @{$labels}, 'MD04.PV3.WSdiff.20150312'; 309 #push @{$labels}, 'MD05.PV3.WSdiff.20150312'; 310 #push @{$labels}, 'MD06.PV3.WSdiff.20150312'; 311 #push @{$labels}, 'MD07.PV3.WSdiff.20150312'; 312 #push @{$labels}, 'MD08.PV3.WSdiff.20150312'; 313 #push @{$labels}, 'MD09.PV3.WSdiff.20150312'; 314 #push @{$labels}, 'MD10.PV3.WSdiff.20150312'; 315 } 316 280 ## EAM 20180510 : manually adding label used for Pole reprocessing 281 ## I would like to add an external file to manage these extra 282 ## labels, but this suffices for now 283 push @{$labels}, 'PV3.Pole.Reprocess.20180510'; 284 } 317 285 318 286 my $query = $self->{_db}->prepare(<<SQL); -
branches/czw_branch/20170908/ippMonitor/raw/getimage.php
r39498 r40478 8 8 // global $BINDIR; 9 9 // global $SITE; 10 // global $PSCONFDIR11 // global $PSCONFIG12 13 10 14 11 ### these need to be set to the correct locations!! … … 21 18 } 22 19 23 putenv("PSCONFDIR=$PSCONFDIR");24 putenv("PSCONFIG=$PSCONFIG");25 20 putenv("PERL5LIB=$PERLLIB:"); 26 21 $PATH = getenv("PATH"); 27 22 putenv("PATH=$BINDIR:$PATH"); 23 putenv("NEB_SERVER=$NEB_SERVER"); 28 24 29 25 if ($debug) { … … 120 116 echo "status: $status<br>"; 121 117 echo "filename: $filename<br>"; 122 exit ();118 // exit (); 123 119 } 124 120 -
branches/czw_branch/20170908/ippMonitor/raw/ipp.czar.dat
r38258 r40478 3 3 menutop | menutop | plain | | 4 4 5 menulink | menuselect | link | czartool - standard | czartool_labels.php 5 menulink | menuselect | link | czartool - old | czartool_labels_old.php 6 menulink | menuselect | link | czartool | czartool_labels.php 6 7 menulink | menuselect | link | mask stats | maskStats.php 7 8 menulink | menuselect | link | night summary | nightSummary.php -
branches/czw_branch/20170908/ippMonitor/raw/ipp.php
r40381 r40478 826 826 // these are defined by site.php 827 827 global $PERLLIB; 828 global $NEB_SERVER; 828 829 global $BINDIR; 829 830 global $SITE; 830 global $PSCONFDIR;831 global $PSCONFIG;832 833 putenv("PSCONFDIR=$PSCONFDIR");834 putenv("PSCONFIG=$PSCONFIG");835 831 putenv("PERL5LIB=$PERLLIB:"); 832 836 833 $PATH = getenv("PATH"); 837 834 putenv("PATH=$BINDIR:$PATH"); 838 839 // be careful of the definition of PATH in SITE: cannot contain HOME 840 echo "<br>ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>\n"; 835 putenv("NEB_SERVER=$NEB_SERVER"); 836 841 837 exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id", $output, $status); 842 838 843 839 if (0) { 840 echo "PERLLIB: $PERLLIB<br>"; 841 echo "NEB_SERVER: $NEB_SERVER<br>"; 844 842 echo "basename: $basename<br>"; 845 843 for ($i = 0; $i < count($output); $i++) { 846 844 echo "output $i: $output[$i]<br>"; 847 845 } 846 echo "path: $PATH<br>"; 848 847 echo "output: $output[0]<br>"; 849 848 echo "status: $status<br>"; 850 849 echo "filename: $filename<br>"; 851 exit ();850 // exit (); 852 851 } 853 852 854 853 $filename = $output[0]; 855 854 if ($status) { 856 echo "log file ($filerule, $basename) not found<br>\n"; 857 return; 855 if ($status == 1) { 856 echo "<b>log file ($filerule, $basename) not found<br></b>\n"; 857 echo "ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>"; 858 return; 859 } else { 860 echo "<b>ipp_filename.pl failure, check configuration<br></b>\n"; 861 echo "ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>"; 862 echo "NEB_SERVER: $NEB_SERVER<br>"; 863 return; 864 } 858 865 } 859 866 echo "<b>log filename: $filename</b><br>\n"; -
branches/czw_branch/20170908/ippMonitor/raw/site.php.in
r38208 r40478 1 1 <?php 2 2 3 $WWWHOST = "@HOST@"; 3 // this file is generated by running configure in the ippMonitor directory 4 // values below are set based on the binary, etc paths. 4 5 5 $PERLLIB = "@PERLLIB@"; 6 $BINDIR = "@BINDIR@"; 7 $LIBDIR = "@LIBDIR@"; 8 $SITE = "@SITE@"; 6 $WWWHOST = "@HOST@"; 9 7 10 $PSCONFDIR = "@PSCONFDIR@"; 11 $PSCONFIG = "@PSCONFIG@"; 8 $PERLLIB = "@PERLLIB@"; 9 $BINDIR = "@BINDIR@"; 10 $LIBDIR = "@LIBDIR@"; 11 $SITE = "@SITE@"; 12 12 13 13 $DBI = "@DBI@"; 14 14 15 // insert config.dat here 15 // insert config.dat here. this contains a number of system-specific things like 16 // the names of database machines and users 17 16 18 @CONFIG.DAT@ 17 19 -
branches/czw_branch/20170908/ippMonitor/raw/skyplot.php
r28601 r40478 12 12 $MISSING = "missing.png"; 13 13 14 ### we must have been past arguments with GET: 14 ### XXX TEST 15 # $outfile = $MISSING; 16 # $file = fopen ($outfile, "r"); 17 # if ($file && !$debug) { 18 # header ('Content-Type: image/png'); 19 # fpassthru ($file); 20 # } 21 # exit(); 22 23 24 ### we must have been passed arguments with GET: 15 25 if ($_SERVER[REQUEST_METHOD] != 'GET') { 16 26 exit (); … … 47 57 $outfile = $_GET[output]; 48 58 49 $output = shell_exec("skyplot.dvo $infile $outfile");//, $output, $status); 59 // $output = shell_exec("skyplot.dvo $infile $outfile");//, $output, $status); 60 exec("skyplot.dvo $infile $outfile", $output, $status); 50 61 51 62 if ($debug) { 63 echo "output from skyplot.dvo<br>\n"; 52 64 for ($i = 0; $i < count($output); $i++) { 53 65 echo "output $i: $output[$i]<br>"; … … 57 69 } 58 70 59 # use these to check the environment 60 # passthru ("env"); 71 // use these to check the environment 72 // passthru ("env"); 73 61 74 62 75 $file = fopen ($outfile, "r"); -
branches/czw_branch/20170908/ippMonitor/scripts/skycellplot.dvo
r34744 r40478 64 64 65 65 macro galactic 66 create l 720 -360 0.166 create l -360 720 0.1 67 67 set b = l * 0 68 68 csystem G C l b … … 71 71 72 72 macro ecliptic 73 create l 720 -360 0.173 create l -360 720 0.1 74 74 set b = l * 0 75 75 csystem E C l b -
branches/czw_branch/20170908/ippMonitor/scripts/skyplot.dvo
r32888 r40478 37 37 end 38 38 39 # echo "starting skyplot" 39 40 data $1 40 41 read r 1 d 2 f 3 41 42 43 # echo "read data r[]" 42 44 resize 1000 500 43 45 region +ns -ew 180 0 85 ait; cgrid -ra-by-hour -c grey80 … … 45 47 set R = r * 180/3.14 46 48 set D = d * 180/3.14 49 # echo "calculated RA,DEC R[]" 47 50 48 51 for i 0 $filters:n 49 52 subset R1 = R if (f == $i) 50 53 subset D1 = D if (f == $i) 54 # echo "subset R1 R1[]" 51 55 if (R1[]) 52 56 cplot R1 D1 -pt $pttype:$i -sz $ptsize:$i -c $filters:$i … … 54 58 end 55 59 60 # echo "plot ecliptic" 56 61 style -c red -pt 0 -sz 0.5; ecliptic 62 63 # echo "plot galactic" 57 64 style -c blue -pt 0 -sz 0.5; galactic 58 65 … … 61 68 62 69 macro galactic 63 create l 720 -360 0.170 create l -360 720 0.1 64 71 set b = l * 0 65 72 csystem G C l b … … 68 75 69 76 macro ecliptic 70 create l 720 -360 0.177 create l -360 720 0.1 71 78 set b = l * 0 72 79 csystem E C l b … … 75 82 76 83 if ($SCRIPT) 84 echo "starting skyplot.dvo" 85 77 86 $KAPA = kapa -noX 78 87 if ($argv:n != 2)
Note:
See TracChangeset
for help on using the changeset viewer.
