IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40478


Ignore:
Timestamp:
Jun 27, 2018, 3:22:45 PM (8 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/czw_branch/20170908/ippMonitor
Files:
11 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20170908/ippMonitor

  • branches/czw_branch/20170908/ippMonitor/INSTALL

    r38216 r40478  
     1
     2# below are commands to configure ippMonitor
    13
    24# 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
    37# 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
     13psconfig ipp-trunk-20180515
     14
     15# run psconfigure to generate Makefile and raw/site.php
    416psconfigure --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config
     17
     18# install the php code:
     19make
  • branches/czw_branch/20170908/ippMonitor/Makefile.in

    r38221 r40478  
    6464$(DESTWWW)/ipp.czartool.dat \
    6565$(DESTWWW)/czartool_labels.php \
     66$(DESTWWW)/czartool_labels_old.php \
    6667$(DESTWWW)/czartool_getplot.php \
    6768$(DESTWWW)/czartool_exposures.php \
  • branches/czw_branch/20170908/ippMonitor/czartool/czartool/CzarDb.pm

    r40095 r40478  
    277277    my $size = scalar @{$labels};
    278278    if ($size < 1) { return; }
    279 # CZW: 2014-09-12 edit to force in lanl labels
    280279    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    }
    317285
    318286    my $query = $self->{_db}->prepare(<<SQL);
  • branches/czw_branch/20170908/ippMonitor/raw/getimage.php

    r39498 r40478  
    88// global $BINDIR;
    99// global $SITE;
    10 // global $PSCONFDIR
    11 // global $PSCONFIG
    12 
    1310
    1411### these need to be set to the correct locations!!
     
    2118}
    2219
    23 putenv("PSCONFDIR=$PSCONFDIR");
    24 putenv("PSCONFIG=$PSCONFIG");
    2520putenv("PERL5LIB=$PERLLIB:");
    2621$PATH = getenv("PATH");
    2722putenv("PATH=$BINDIR:$PATH");
     23putenv("NEB_SERVER=$NEB_SERVER");
    2824
    2925if ($debug) {
     
    120116  echo "status:   $status<br>";
    121117  echo "filename: $filename<br>";
    122   exit ();
     118  // exit ();
    123119}
    124120
  • branches/czw_branch/20170908/ippMonitor/raw/ipp.czar.dat

    r38258 r40478  
    33menutop   | menutop      | plain   | &nbsp;   |   
    44
    5 menulink   | menuselect      | link    | czartool - standard          | czartool_labels.php
     5menulink   | menuselect      | link    | czartool - old  | czartool_labels_old.php
     6menulink   | menuselect      | link    | czartool        | czartool_labels.php
    67menulink   | menuselect      | link    | mask stats                   | maskStats.php
    78menulink   | menuselect      | link    | night summary                | nightSummary.php
  • branches/czw_branch/20170908/ippMonitor/raw/ipp.php

    r40381 r40478  
    826826    // these are defined by site.php
    827827    global $PERLLIB;
     828    global $NEB_SERVER;
    828829    global $BINDIR;
    829830    global $SITE;
    830     global $PSCONFDIR;
    831     global $PSCONFIG;
    832 
    833     putenv("PSCONFDIR=$PSCONFDIR");
    834     putenv("PSCONFIG=$PSCONFIG");
    835831    putenv("PERL5LIB=$PERLLIB:");
     832
    836833    $PATH = getenv("PATH");
    837834    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
    841837    exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id", $output, $status);
    842838
    843839    if (0) {
     840      echo "PERLLIB: $PERLLIB<br>";
     841      echo "NEB_SERVER: $NEB_SERVER<br>";
    844842      echo "basename: $basename<br>";
    845843      for ($i = 0; $i < count($output); $i++) {
    846844        echo "output $i: $output[$i]<br>";
    847845      }
     846      echo "path:     $PATH<br>";
    848847      echo "output:   $output[0]<br>";
    849848      echo "status:   $status<br>";
    850849      echo "filename: $filename<br>";
    851       exit ();
     850      // exit ();
    852851    }
    853852
    854853    $filename = $output[0];
    855854    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      }
    858865    }
    859866    echo "<b>log filename: $filename</b><br>\n";
  • branches/czw_branch/20170908/ippMonitor/raw/site.php.in

    r38208 r40478  
    11<?php
    22
    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.
    45
    5 $PERLLIB = "@PERLLIB@";
    6 $BINDIR  = "@BINDIR@";
    7 $LIBDIR  = "@LIBDIR@";
    8 $SITE    = "@SITE@";
     6$WWWHOST    = "@HOST@";
    97
    10 $PSCONFDIR = "@PSCONFDIR@";
    11 $PSCONFIG  = "@PSCONFIG@";
     8$PERLLIB    = "@PERLLIB@";
     9$BINDIR     = "@BINDIR@";
     10$LIBDIR     = "@LIBDIR@";
     11$SITE       = "@SITE@";
    1212
    1313$DBI     = "@DBI@";
    1414
    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
    1618@CONFIG.DAT@
    1719
  • branches/czw_branch/20170908/ippMonitor/raw/skyplot.php

    r28601 r40478  
    1212$MISSING = "missing.png";
    1313
    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:
    1525if ($_SERVER[REQUEST_METHOD] != 'GET') {
    1626  exit ();
     
    4757$outfile = $_GET[output];
    4858
    49 $output = shell_exec("skyplot.dvo $infile $outfile");//, $output, $status);
     59// $output = shell_exec("skyplot.dvo $infile $outfile");//, $output, $status);
     60exec("skyplot.dvo $infile $outfile", $output, $status);
    5061
    5162if ($debug) {
     63  echo "output from skyplot.dvo<br>\n";
    5264  for ($i = 0; $i < count($output); $i++) {
    5365    echo "output $i: $output[$i]<br>";
     
    5769}
    5870
    59 # use these to check the environment
    60 # passthru ("env");
     71// use these to check the environment
     72// passthru ("env");
     73
    6174
    6275$file = fopen ($outfile, "r");
  • branches/czw_branch/20170908/ippMonitor/scripts/skycellplot.dvo

    r34744 r40478  
    6464
    6565macro galactic
    66  create l 720 -360 0.1
     66 create l -360 720 0.1
    6767 set b = l * 0
    6868 csystem G C l b
     
    7171
    7272macro ecliptic
    73  create l 720 -360 0.1
     73 create l -360 720 0.1
    7474 set b = l * 0
    7575 csystem E C l b
  • branches/czw_branch/20170908/ippMonitor/scripts/skyplot.dvo

    r32888 r40478  
    3737  end
    3838
     39  # echo "starting skyplot"
    3940  data $1
    4041  read r 1 d 2 f 3
    4142
     43  # echo "read data r[]"
    4244  resize 1000 500
    4345  region +ns -ew 180 0 85 ait; cgrid -ra-by-hour -c grey80
     
    4547  set R = r * 180/3.14
    4648  set D = d * 180/3.14
     49  # echo "calculated RA,DEC R[]"
    4750
    4851  for i 0 $filters:n
    4952    subset R1 = R if (f == $i)
    5053    subset D1 = D if (f == $i)
     54    # echo "subset R1 R1[]"
    5155    if (R1[])
    5256      cplot R1 D1 -pt $pttype:$i -sz $ptsize:$i -c $filters:$i
     
    5458  end
    5559
     60  # echo "plot ecliptic"
    5661  style -c red -pt 0 -sz 0.5; ecliptic
     62
     63  # echo "plot galactic"
    5764  style -c blue -pt 0 -sz 0.5; galactic
    5865
     
    6168
    6269macro galactic
    63  create l 720 -360 0.1
     70 create l -360 720 0.1
    6471 set b = l * 0
    6572 csystem G C l b
     
    6875
    6976macro ecliptic
    70  create l 720 -360 0.1
     77 create l -360 720 0.1
    7178 set b = l * 0
    7279 csystem E C l b
     
    7582
    7683if ($SCRIPT)
     84  echo "starting skyplot.dvo"
     85
    7786  $KAPA = kapa -noX
    7887  if ($argv:n != 2)
Note: See TracChangeset for help on using the changeset viewer.