IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11490


Ignore:
Timestamp:
Jan 31, 2007, 11:20:53 AM (19 years ago)
Author:
eugene
Message:

update to use the new database columns

Location:
trunk/ippMonitor
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/Makefile

    r10963 r11490  
    5252$(DESTBIN)/pzPendingExp.php \
    5353$(DESTBIN)/pzPendingImfile.php \
     54$(DESTBIN)/rawUnknownExp.php \
    5455$(DESTBIN)/rawDetrendExp.php \
    5556$(DESTBIN)/rawDetrendExp_detrend.php \
    5657$(DESTBIN)/rawImfile.php \
     58$(DESTBIN)/rawImfile_failed.php \
     59$(DESTBIN)/rawExp_failed.php \
    5760$(DESTBIN)/rawScienceExp.php \
    5861$(DESTBIN)/summitExp.php
  • trunk/ippMonitor/def/detNormalizedExp.d

    r9439 r11490  
    1010FIELD bg_stdev,      8,     stdev
    1111FIELD iteration,     5,     iteration
    12 FIELD b2_uri,        8,     image,     image=$b2_uri,  detNormalizedImfile.php, det_id=$det_id,iteration=$iteration,image=$b1_uri
     12FIELD b2_uri,        8,     image,     image=$b1_uri@PPIMAGE.JPEG2,  detNormalizedImfile.php, det_id=$det_id,iteration=$iteration,image=$b1_uri@PPIMAGE.JPEG1
    1313#FIELD b1_uri, 20,   b1_uri
    1414#FIELD recipe, 20,   recipe
  • trunk/ippMonitor/def/detProcessedExp.d

    r9439 r11490  
    77FIELD det_id,     7,   Det ID,    value
    88FIELD exp_tag,   15,   Exposure,  value
    9 FIELD b2_uri,     8,   image,     image=$b2_uri,  detProcessedImfile.php, det_id=$det_id,exp_tag=$exp_tag,image=$b1_uri
     9FIELD b2_uri,     8,   image,     image=$b1_uri@PPIMAGE.JPEG2,  detProcessedImfile.php, det_id=$det_id,exp_tag=$exp_tag,image=$b1_uri@PPIMAGE.JPEG1
    1010FIELD bg,         8,   backgnd,   value
    1111FIELD bg_mean_stdev, 8, [stdev],  value
  • trunk/ippMonitor/def/detResidExp.d

    r9439 r11490  
    44MENU  ipp.detrend.dat
    55
    6 #     field        size    name       show            link to             extras
     6#     field        size    name       show    link to              extras
    77FIELD det_id,        7,    Det ID,    value
    8 FIELD exp_tag,      15,    Exposure,  value,          rawImfile.php,      exp_tag=$exp_tag
    9 FIELD b2_uri,        8,    image,     image=$b2_uri,  detResidImfile.php, det_id=$det_id,iteration=$iteration,exp_tag=$exp_tag,image=$b1_uri
     8FIELD exp_tag,      15,    Exposure,  value,  rawImfile.php,       exp_tag=$exp_tag
     9FIELD b2_uri,        8,    image,     image=$b1_uri@PPIMAGE.JPEG2, detResidImfile.php, det_id=$det_id,iteration=$iteration,exp_tag=$exp_tag,image=$b1_uri@PPIMAGE.JPEG1
    1010FIELD bg,            8,    backgnd,   value
    1111FIELD bg_mean_stdev, 8,    [stdev]
  • trunk/ippMonitor/def/newExp.d

    r9323 r11490  
    99FIELD    camera,        20,   camera
    1010FIELD    telescope,     20,   telescope
    11 FIELD    exp_type,      20,   type
    1211FIELD    imfiles,       20,   N imfiles
  • trunk/ippMonitor/def/p3ProcessedExp.d

    r9398 r11490  
    66#     field         size   name       show            link to                extras
    77FIELD exp_tag,       15,   Exposure,  value
    8 FIELD b2_uri,         8,   image,     image=$b2_uri,  p2ProcessedImfile.php, exp_tag=$exp_tag,image=$b1_uri
     8FIELD b2_uri,         8,   image,     image=$b1_uri@PPIMAGE.JPEG2, p2ProcessedImfile.php, exp_tag=$exp_tag,image=$b1_uri@PPIMAGE.JPEG1
    99FIELD bg,             8,   backgnd,   value
    1010FIELD bg_mean_stdev,  8,   [stdev],   value
  • trunk/ippMonitor/def/rawDetrendExp.d

    r10963 r11490  
    1 TABLE rawDetrendExp
     1TABLE rawExp
    22TITLE Raw Detrend Exposures
    33FILE  rawDetrendExp.php
    44MENU  ipp.copy.dat
     5
     6# limit this table to non-OBJECT types of images
     7WHERE rawExp.exp_type != 'OBJECT'
    58
    69#        field        name  show           link to  extras
  • trunk/ippMonitor/def/rawDetrendExp_detrend.d

    r9323 r11490  
    1 TABLE rawDetrendExp
     1TABLE rawExp
    22TITLE Raw Detrend Exposures
    33FILE  rawDetrendExp.php
    44MENU  ipp.detrend.dat
    55
     6# limit this table to non-OBJECT types of images
     7WHERE rawExp.exp_type != 'OBJECT'
     8
    69#        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
     10FIELD    exp_tag,     10,   exposure ID,   value,   rawImfile.php,  exp_tag=$exp_tag
     11FIELD    telescope,   10,   Telescope
     12FIELD    camera,      10,   Camera
     13FIELD    exp_type,    10,   Type   
     14FIELD    filter,      10,   FILTER
     15FIELD    dateobs,     20,   Date/Time
     16FIELD    exp_time,     5,   exp_time   
     17FIELD    airmass,      5,   airmass     
     18FIELD    bg,           5,   backgnd
     19FIELD    bg_stdev,     5,   stdev   
     20FIELD    bg_mean_stdev, 5,  <backgnd>
    1221# FIELD    imfiles,   20,   imfiles     
    1322# FIELD    airmass,   20,   airmass     
  • trunk/ippMonitor/def/rawImfile.d

    r10963 r11490  
    33FILE  rawImfile.php
    44MENU  ipp.imfiles.dat
     5
     6HEAD PHP insert_backref ("rawUnknownExp.php", "exp_tag", $ID['link']);
    57
    68#        field        name   show         link to         extras
  • trunk/ippMonitor/def/rawScienceExp.d

    r10963 r11490  
    1 TABLE rawScienceExp
     1TABLE rawExp
    22TITLE Raw Science Exposures
    33FILE  rawScienceExp.php
    44MENU  ipp.copy.dat
     5
     6# limit this table to OBJECT types of images
     7WHERE rawExp.exp_type = 'OBJECT'
    58
    69#        field        name           show          link to   extras
  • trunk/ippMonitor/generate

    r10963 r11490  
    338338                if ($field[$i] eq "*") { next; }
    339339                if ($value =~ m|^\$$field[$i]|) {
     340                    # print "field: $field[$i]\n";
     341                    ($name, $extra) = $value =~ m|^\$($field[$i])\@(\S+)|;
     342                    # print "name: $name\n";
     343                    # print "extra: $extra\n";
     344                    # print "value: $value\n";
     345
    340346                    $Nrow = $count[$i];
    341                     $value = "\$row[$Nrow]";
     347                    if ($extra) {
     348                        $value = "\$row[$Nrow]\@$extra";
     349                    } else {
     350                        $value = "\$row[$Nrow]";
     351                    }
     352                    # print "outval: $value\n";
    342353                    last MATCH_LABEL;
    343354                }
  • trunk/ippMonitor/raw/getimage.php

    r10963 r11490  
    1313}
    1414
    15 $basename = escapeshellarg($_GET[name]);
    16 $basename = str_replace ('..','',$basename);
    17 
    1815putenv("PERL5LIB=$PERLLIB:");
    1916$PATH = getenv("PATH");
    2017putenv("PATH=$BINDIR:$PATH");
     18
     19# echo "args: $args<br>";
     20
     21# $basename may contain filename@filerule
     22$basename = strtok($_GET[name],"@");
     23$filerule = strtok("@");
     24
     25# echo "basename: $basename<br>";
     26# echo "filerule: $filerule<br>";
     27
     28# need to supply the camera as well...
     29# exec ("ipp_filerule.pl --site=$SITE $basename", $output, $status);
     30
     31if ($filerule) {
     32  if ($filerule == "PPIMAGE.JPEG1") {
     33    $basename = "$basename.b1.jpg";
     34  }
     35  if ($filerule == "PPIMAGE.JPEG2") {
     36    $basename = "$basename.b2.jpg";
     37  }
     38}
     39
     40$basename = escapeshellarg($basename);
     41$basename = str_replace ('..','',$basename);
    2142
    2243exec ("ipp_datapath.pl --site=$SITE $basename", $output, $status);
  • trunk/ippMonitor/raw/ipp.copy.dat

    r10963 r11490  
    2626menulink  | menuselect   | link    | Raw Detrend Exp              | rawDetrendExp.php             
    2727menulink  | menuselect   | link    | Raw Science Exp              | rawScienceExp.php             
     28menulink  | menuselect   | link    | Raw Unknown Exp              | rawUnknownExp.php             
    2829menutop   | menutop      | plain   | &nbsp;                       |
    2930menulink  | menuselect   | link    | Summit Exp                   | summitExp.php                         
    3031menulink  | menuselect   | link    | Copy Pending Exp             | pzPendingExp.php             
    3132menulink  | menuselect   | link    | New Exp                      | newExp.php                   
     33menutop   | menutop      | plain   | &nbsp;                       |
     34menulink  | menuselect   | link    | Failed Raw Imfiles           | rawImfile_failed.php                         
     35menulink  | menuselect   | link    | Failed Raw Exp               | rawExp_failed.php                   
  • trunk/ippMonitor/raw/ipp.php

    r10621 r11490  
    200200  echo "<body>\n";
    201201
    202   $root = "/phpipp";
     202  $root = "/ippMonitor";
    203203
    204204  if (! $project) { $project = "none"; }
     
    307307}
    308308
     309// expect image supplied with key=name
     310// this function should define matching hidden inputs in the form
     311function insert_backref ($page, $key, $link) {
     312
     313  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     314    $name = $_GET[$key];
     315  } else {
     316    $name = $_POST[$key];
     317  }
     318
     319  if ($name) {
     320    echo "back to <a href=\"$page?$link&$key=$name\"> $name </a><br>\n";
     321  }
     322}
     323
    309324// $myPage = $_SERVER[SCRIPT_NAME] . "?pass=$pass";
    310325
Note: See TracChangeset for help on using the changeset viewer.