IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10963


Ignore:
Timestamp:
Jan 8, 2007, 11:33:32 AM (19 years ago)
Author:
eugene
Message:

all sorts of things...

Location:
trunk/ippMonitor
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/Makefile

    r9439 r10963  
    66DEF     =       def
    77RAW     =       raw
    8 DESTBIN =       /var/www/kiawe/phpipp
     8DESTBIN =       /var/www/kiawe/ippMonitor
    99
    1010RAWSRC = \
     
    5959
    6060PICTURES = \
    61 $(DESTBIN)/PScolorlogo2.jpg
     61$(DESTBIN)/PScolorlogo2.jpg \
     62$(DESTBIN)/missing.png
    6263
    63 php: $(RAWSRC) $(DEFSRC) $(PICTURES)
     64DESTLINK = $(DESTBIN)/index.php
     65
     66php: $(RAWSRC) $(DEFSRC) $(PICTURES) $(DESTLINK)
    6467
    6568# dependancy rules for binary code #########################
    6669# .PRECIOUS: %.$(ARCH).o
    6770# .PRECIOUS: $(BIN)/%.$(ARCH)
     71
     72$(DESTLINK): $(DESTBIN)/Login.php
     73        rm -f $@
     74        ln -s $(DESTBIN)/Login.php $@
    6875
    6976$(SRC)/%.php: $(DEF)/%.d $(DEF)/autocode.php ./generate
  • trunk/ippMonitor/def/autocode.php

    r10621 r10963  
    107107echo "</tr>\n";
    108108
     109// query restriction form
     110echo "<tr>\n";
     111// echo "<td class=list> <input type=\"text\" name=\"expID\"></td>\n";
     112// ** TABLE QUERY **
     113echo "</tr>\n";
     114
    109115// list the results
    110116while ($qry->fetchInto($row)) {
     
    119125
    120126// query restriction form
    121 echo "<tr>\n";
     127// echo "<tr>\n";
    122128// echo "<td class=list> <input type=\"text\" name=\"expID\"></td>\n";
    123 // ** TABLE QUERY **
    124 echo "</tr>\n";
     129// TABLE QUERY
     130// echo "</tr>\n";
    125131
    126132// close the table and form
  • trunk/ippMonitor/def/detRun.d

    r9439 r10963  
    44MENU  ipp.detrend.dat
    55
    6 #     field      name         show    link to              extras
    7 FIELD det_id,    20,   det ID,      value,  detRunSummary.php,   det_id=$det_id
    8 FIELD iteration, 20,   iteration
    9 FIELD det_type,  20,   det_type
    10 FIELD state,     20,   state
     6#     field       width name         show    link to              extras
     7FIELD det_id,      7,   det ID,      value,  detRunSummary.php,   det_id=$det_id
     8FIELD iteration,   5,   iteration
     9FIELD det_type,    8,   det_type
     10FIELD state,       5,   state
     11FIELD mode,        5,   mode
     12FIELD exp_type,    8,   exp_type (drop)
     13FIELD filter,     10,   filter     
     14FIELD airmass,    10,   airmass   
     15FIELD exp_time,   10,   exp_time   
     16FIELD ccd_temp,   10,   ccd_temp   
     17FIELD posang,     10,   posang     
     18FIELD object,     10,   object     
     19FIELD registered, 10,   registered
     20FIELD use_begin,  10,   use_begin 
     21FIELD use_end,    10,   use_end   
  • trunk/ippMonitor/def/rawDetrendExp.d

    r9323 r10963  
    44MENU  ipp.copy.dat
    55
    6 #        field        name           show     link to         extras
    7 FIELD    exp_tag,      20,   exposure ID,   value,   rawImfile.php,  exp_tag=$exp_tag
    8 FIELD    telescope,   20,   Telescope
    9 FIELD    camera,      20,   Camera
    10 FIELD    exp_type,    20,   Type   
    11 FIELD    filter,      20,   FILTER
    12 # FIELD    imfiles,   20,   imfiles     
    13 # FIELD    airmass,   20,   airmass     
    14 # FIELD    ra,        20,   ra         
    15 # FIELD    decl,      20,   decl       
    16 # FIELD    exp_time,  20,   exp_time   
    17 # FIELD    bg,        20,   bg         
    18 # FIELD    bg_stdev,  20,   bg_stdev   
    19 # FIELD    bg_mean_stdev, 20,   bg_mean_stdev   
    20 # FIELD    alt,       20,   alt         
    21 # FIELD    az,        20,   az         
    22 # FIELD    ccd_temp,  20,   ccd_temp   
    23 # FIELD    posang,    20,   posang     
    24 # FIELD    object,    20,   object
     6#        field        name  show           link to  extras
     7FIELD    exp_tag,     10,   exposure ID,   value,   rawImfile.php,  exp_tag=$exp_tag
     8FIELD    telescope,   10,   Telescope
     9FIELD    camera,      10,   Camera
     10FIELD    exp_type,    10,   Type   
     11FIELD    filter,      10,   FILTER
     12FIELD    dateobs,     20,   Date/Time
     13FIELD    exp_time,     5,   exp_time   
     14FIELD    airmass,      5,   airmass     
     15FIELD    bg,           5,   backgnd
     16FIELD    bg_stdev,     5,   stdev   
     17FIELD    bg_mean_stdev, 5,  &lt;backgnd&gt;
     18# FIELD  ra,           8,   ra         
     19# FIELD  decl,         8,   decl       
     20# FIELD  object,      10,   object
     21# FIELD  imfiles,     20,   imfiles     
     22# FIELD  airmass,     20,   airmass     
     23# FIELD  bg_mean_stdev, 20, bg_mean_stdev   
     24# FIELD  alt,         20,   alt         
     25# FIELD  az,          20,   az         
     26# FIELD  ccd_temp,    20,   ccd_temp   
     27# FIELD  posang,      20,   posang     
  • trunk/ippMonitor/def/rawImfile.d

    r9569 r10963  
    1010FIELD    bg_stdev,      8,    stdev
    1111FIELD    bg_mean_stdev, 8,    [stdev]
     12FIELD    uri,          10,    uri
    1213# FIELD    class,       20,   Class
    1314# FIELD    uri,       20,   uri
  • trunk/ippMonitor/def/rawScienceExp.d

    r9323 r10963  
    44MENU  ipp.copy.dat
    55
    6 #        field        name           show    link to         extras
    7 FIELD    exp_tag,     20,   exposure Tag,   value,   rawImfile.php,  exp_tag=$exp_tag,camera=$camera,foo=bar
    8 FIELD    telescope,   20,   Telescope,     value,  telescopes.php
    9 FIELD    camera,      20,   Camera
    10 FIELD    exp_type,    20,   Type   
    11 FIELD    filter,      20,   FILTER
     6#        field        name           show          link to   extras
     7FIELD    exp_tag,     10,            exposure Tag, value,    rawImfile.php,  exp_tag=$exp_tag,camera=$camera,foo=bar
     8FIELD    telescope,   10,            Telescope,    value,    telescopes.php
     9FIELD    camera,      10,            Camera
     10FIELD    exp_type,     8,            Type   
     11FIELD    filter,      10,            FILTER
     12FIELD    ra,           8,            ra         
     13FIELD    decl,         8,            decl       
     14FIELD    object,      10,            object
     15FIELD    airmass,      5,            airmass     
     16FIELD    exp_time,     5,            exp_time   
     17FIELD    bg,           5,            bg         
     18FIELD    bg_stdev,     5,            bg_stdev   
    1219# FIELD    imfiles, 20,   imfiles     
    13 # FIELD    airmass, 20,   airmass     
    14 # FIELD    ra, 20,   ra         
    15 # FIELD    decl, 20,   decl       
    16 # FIELD    exp_time, 20,   exp_time   
    17 # FIELD    bg, 20,   bg         
    18 # FIELD    bg_stdev, 20,   bg_stdev   
    1920# FIELD    bg_mean_stdev, 20,   bg_mean_stdev   
    2021# FIELD    alt, 20,   alt         
     
    2223# FIELD    ccd_temp, 20,   ccd_temp   
    2324# FIELD    posang, 20,   posang     
    24 # FIELD    object,    20,   object
  • trunk/ippMonitor/generate

    r10622 r10963  
    178178sub write_table_header {
    179179
    180     // add column sorting elements here
     180    # add column sorting elements here
    181181    for ($i = 0; $i < @field; $i++) {
    182182        if ($show[$i] eq "none")  { next; }
  • trunk/ippMonitor/raw/getimage.php

    r10595 r10963  
    11<?php
    22
    3 # $IMAGEDIR = "/data/alala/eugene/swtests/pantasks/";
    4 $CONFIGDIR = "/data/alala/eugene/src/panstarrs/ipp/config/ipprc.config";
     3### these need to be set to the correct locations!!
     4$PERLLIB = "/home/kiawe/eugene/psconfig/dev.linux/lib";
     5$BINDIR = "/home/kiawe/eugene/psconfig/dev.linux/bin";
     6$SITE = "/home/kiawe/eugene/.ipprc";
    57$MISSING = "missing.png";
    68
     
    1113}
    1214
    13 $basename = $_GET[name];
     15$basename = escapeshellarg($_GET[name]);
    1416$basename = str_replace ('..','',$basename);
    1517
    16 $filename = system ("ipp_datapath.pl --site=$CONFIGDIR $IMAGEDIR", $status);
     18putenv("PERL5LIB=$PERLLIB:");
     19$PATH = getenv("PATH");
     20putenv("PATH=$BINDIR:$PATH");
     21
     22exec ("ipp_datapath.pl --site=$SITE $basename", $output, $status);
     23
     24$filename = $output[0];
    1725if ($status) {
    1826  $filename = $MISSING;
     27}
     28
     29if (0) {
     30  echo "basename: $basename<br>";
     31  echo "result:   $result<br>";
     32  echo "output:   $output[0]<br>";
     33  echo "status:   $status<br>";
     34  echo "filename: $filename<br>";
     35  exit ();
    1936}
    2037
  • trunk/ippMonitor/raw/ipp.copy.dat

    r9439 r10963  
    2424
    2525menutop   | menutop      | plain   | &nbsp;                       |
     26menulink  | menuselect   | link    | Raw Detrend Exp              | rawDetrendExp.php             
     27menulink  | menuselect   | link    | Raw Science Exp              | rawScienceExp.php             
     28menutop   | menutop      | plain   | &nbsp;                       |
    2629menulink  | menuselect   | link    | Summit Exp                   | summitExp.php                         
    2730menulink  | menuselect   | link    | Copy Pending Exp             | pzPendingExp.php             
    2831menulink  | menuselect   | link    | New Exp                      | newExp.php                   
    29 menulink  | menuselect   | link    | Raw Detrend Exp              | rawDetrendExp.php             
    30 menulink  | menuselect   | link    | Raw Science Exp              | rawScienceExp.php             
  • trunk/ippMonitor/raw/ipp.detrend.dat

    r9439 r10963  
    2525menutop   | menutop      | plain   | &nbsp;                       |
    2626menulink  | menuselect   | link    | Detrend Frames               | masterDetrendFrames.php
    27 menulink  | menuselect   | link    | Detrend Runs                 | detRunSummary.php             
     27menulink  | menuselect   | link    | Detrend Runs                 | detRun.php             
     28menulink  | menuselect   | link    | Detrend Iterations           | detRunSummary.php             
     29menulink  | menulink     | plain   | &nbsp;                       |
    2830menulink  | menuselect   | link    | Raw Detrend Exp              | rawDetrendExp_detrend.php
    2931menulink  | menuselect   | link    | Input Detrend Exp            | detInputExp.php
    3032menulink  | menuselect   | link    | Proc Detrend Exp             | detProcessedExp.php
     33menulink  | menuselect   | link    | Norm Detrend Exp             | detNormalizedExp.php
    3134menulink  | menuselect   | link    | Resid Detrend Exp            | detResidExp.php
    32 menulink  | menuselect   | link    | Norm Detrend Exp             | detNormalizedExp.php
  • trunk/ippMonitor/raw/ipp.science.dat

    r9439 r10963  
    2727menulink  | menuselect   | link    | P2 Processed Exp             | p2ProcessedExp.php           
    2828menulink  | menuselect   | link    | P3 Processed Exp             | p3ProcessedExp.php           
     29menutop   | menutop      | plain   | &nbsp;                       |
    2930menulink  | menuselect   | link    | P1 Pending Exp               | p1PendingExp.php             
    3031menulink  | menuselect   | link    | P2 Pending Exp               | p2PendingExp.php             
Note: See TracChangeset for help on using the changeset viewer.