IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14113 for trunk/ippMonitor


Ignore:
Timestamp:
Jul 10, 2007, 3:07:42 PM (19 years ago)
Author:
eugene
Message:

updating to new table schema

Location:
trunk/ippMonitor
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/autocode.php

    r13566 r14113  
    2828// get the result table count
    2929$sql = "SELECT count(*) FROM $TABLE $WHERE";
     30// echo "<br><small><b> count query : $sql </b></small><br>\n";
    3031
    3132$qry = $db->query($sql);
     
    5152// query the database
    5253$sql = "SELECT $FIELDS FROM $TABLE $WHERE LIMIT $dTABLE OFFSET $rowStart";
     54// echo "<br><small><b> table query : $sql </b></small><br>\n";
    5355
    5456$qry = $db->query($sql);
  • trunk/ippMonitor/def/camProcessedExp.d

    r14096 r14113  
    44MENU  ipp.science.dat
    55
     6# the following WHERE clauses are added to all queries joined by AND
    67WHERE camRun.state = 'stop'
    78WHERE camRun.chip_id = chipRun.chip_id
    89WHERE chipRun.exp_id = rawExp.exp_id
    9 WHERE camProcessedExp.cam_id = camRun.cam_id
     10WHERE camProcessedExp.cam_id  = camRun.cam_id
    1011WHERE camProcessedExp.chip_id = camRun.chip_id
    1112
     13# define image names to be used below
     14# IMAGE VAR basename filerule camera class_id
     15IMAGE JPEG2 $camProcessedExp.path_base PPIMAGE.JPEG2 $rawExp.camera NONE
     16
     17# define the arguments supplied to the links below (if any)
    1218ARGS  ARG1  chipRun.exp_id=$chipRun.exp_id
    1319
    14 #     field                     size  name          show   link to                  extras
    15 FIELD camRun.cam_id,             5,   chip ID,      value, chipProcessedExp.php,    ARG1
    16 FIELD chipRun.chip_id,           5,   cam ID
    17 FIELD chipRun.exp_id,            5,   exposure ID,  value, chipProcessedImfile.php, ARG1
    18 FIELD rawExp.exp_name,           5,   Exp Name,     value, rawImfile.php,  ARG1
    19 FIELD rawExp.telescope,         10,   Telescope
    20 FIELD rawExp.camera,            10,   Camera
    21 FIELD rawExp.dateobs,           20,   Date/Time
    22 FIELD rawExp.filter,            10,   FILTER
    23 FIELD rawExp.ra,                 5,   RA   
    24 FIELD rawExp.decl,               5,   Dec
    25 FIELD rawExp.exp_time,           5,   exp_time   
    26 FIELD rawExp.sat_pixel_frac,     5,   f(sat pixels)
    27 FIELD rawExp.airmass,            5,   airmass     
    28 FIELD rawExp.bg,                 5,   backgnd
    29 FIELD rawExp.bg_stdev,           5,   stdev   
    30 FIELD rawExp.bg_mean_stdev,      5,   &lt;backgnd&gt;
     20ARGS  ARG2 camRun.cam_id=$camRun.cam_id
     21ARGS  ARG2 rawExp.exp_id=$rawExp.exp_id
     22ARGS  ARG2 camera=$rawExp.camera
     23ARGS  ARG2 basename=$camProcessedExp.path_base
    3124
    32 FIELD camProcessedExp.n_stars,  5, Nstars
    33 FIELD camProcessedExp.n_astrom, 5, Nastrom
    34 FIELD camProcessedExp.sigma_ra, 5, sigma ra
    35 FIELD camProcessedExp.fwhm,     5, FHWM
     25#     field                             size  name          show         link to                  extras
     26FIELD rawExp.exp_name,                   5,   Exp Name,     value,       rawImfile.php,  ARG1
     27FIELD chipRun.exp_id,                    5,   Exp ID,       value,       chipProcessedImfile.php, ARG1
     28FIELD chipRun.chip_id,                   5,   chip ID
     29FIELD camRun.cam_id,                     5,   cam ID,       value,       chipProcessedExp.php,    ARG1
     30FIELD *,                                 8,   image,        image=JPEG2, camProcessedImfile.php,  ARG2
     31FIELD rawExp.telescope,                 10,   Telescope
     32FIELD rawExp.camera,                    10,   Camera
     33FIELD rawExp.dateobs,                   20,   Date/Time
     34FIELD rawExp.filter,                    10,   FILTER
     35FIELD rawExp.ra,                         5,   RA   
     36FIELD rawExp.decl,                       5,   Dec
     37FIELD rawExp.exp_time,                   5,   exp_time   
     38FIELD rawExp.sat_pixel_frac,             5,   f(sat pixels)
     39FIELD rawExp.airmass,                    5,   airmass     
     40FIELD camProcessedExp.bg,                5,   backgnd
     41FIELD camProcessedExp.bg_stdev,          5,   stdev   
     42FIELD camProcessedExp.bg_mean_stdev,     5,   &lt;backgnd&gt;
     43FIELD camProcessedExp.n_stars,           5,   Nstars
     44FIELD camProcessedExp.n_astrom,          5,   Nastrom
     45FIELD camProcessedExp.sigma_ra,          5,   sigma ra
     46FIELD camProcessedExp.fwhm,              5,   FHWM
     47FIELD camProcessedExp.path_base,         5,   path_base,    none
     48FIELD rawExp.exp_id,                     5,   Exp ID,       none
  • trunk/ippMonitor/def/chipProcessedExp.d

    r14096 r14113  
    1 TABLE chipRun, rawExp, chipProcessedImfile
     1TABLE chipRun, rawExp
    22TITLE chip Processed Exposures
    3 FILE  chipPendingExp.php
     3FILE  chipProcessedExp.php
    44MENU  ipp.science.dat
    55
     
    77WHERE chipRun.state = 'stop'
    88WHERE chipRun.exp_id = rawExp.exp_id
    9 WHERE chipProcessedImfile.exp_id = chipRun.exp_id
    10 WHERE chipProcessedImfile.chip_id = chipRun.chip_id
    119
    1210ARGS  ARG1  exp_id=$chipRun.exp_id
     11ARGS  ARG2  chipRun.chip_id=$chipRun.chip_id
    1312
    14 #     field                   size  name         show    link to         extras
     13#     field                   size  name         show    link to                  extras
    1514FIELD chipRun.chip_id,           7, chip ID
    16 FIELD chipRun.exp_id,            5, Exp ID
    17 FIELD rawExp.exp_name,           5, Exp Name,    value,  rawImfile.php,  ARG1
     15FIELD chipRun.exp_id,            5, Exp ID,      value,  rawImfile.php,           ARG1
     16FIELD rawExp.exp_name,           5, Exp Name,    value,  chipProcessedImfile.php, ARG2
    1817FIELD rawExp.telescope,         10, Telescope
    1918FIELD rawExp.camera,            10, Camera
     
    2928FIELD rawExp.bg_mean_stdev,      5, &lt;backgnd&gt;
    3029
    31 FIELD chipProcessedImfile.n_stars,  5, Nstars
    32 FIELD chipProcessedImfile.n_astrom, 5, Nastrom
    33 FIELD chipProcessedImfile.sigma_ra, 5, sigma ra
    34 FIELD chipProcessedImfile.fwhm,     5, FHWM
    35 
    3630# FIELD chipPendingExp.reduction,    20,   reduction
    3731# FIELD chipPendingExp.guide_id,     20, guide ID
  • trunk/ippMonitor/def/chipProcessedImfile.d

    r14044 r14113  
    1 TABLE chipProcessedImfile, chipProcessedExp
    2 TITLE chipProcessedImfile
     1TABLE chipRun, rawExp, chipProcessedImfile
     2TITLE chip Processed Imfile
    33FILE  chipProcessedImfile.php
    4 MENU  ipp.imfiles.dat
     4MENU  ipp.science.dat
    55
    6 WHERE chipProcessedImfile.chip_id = chipProcessedExp.chip_id
     6# limit this table to non-OBJECT types of images
     7WHERE chipRun.state = 'stop'
     8WHERE chipRun.exp_id = rawExp.exp_id
     9WHERE chipProcessedImfile.exp_id = chipRun.exp_id
     10WHERE chipProcessedImfile.chip_id = chipRun.chip_id
    711
    8 #     field                               size  name        show  link to     extras
    9 FIELD chipProcessedExp.exp_id,            15,   Exposure
    10 FIELD chipProcessedImfile.class_id,       8,    Chip ID
    11 FIELD chipProcessedImfile.bg,             8,    backgnd
    12 FIELD chipProcessedImfile.bg_mean_stdev,  8,    [stdev]
    13 FIELD chipProcessedImfile.bg_stdev,       8,    stdev
     12ARGS  ARG1  exp_id=$chipRun.exp_id
    1413
    15 TAIL PHP insert_image ('PPIMAGE.JPEG1');
     14#     field                   size  name         show    link to                  extras
     15FIELD chipRun.chip_id,           7, chip ID
     16FIELD chipRun.exp_id,            5, Exp ID,      value,  rawImfile.php,           ARG1
     17FIELD rawExp.exp_name,           5, Exp Name,    value,  chipProcessedImfile.php, ARG2
     18FIELD rawExp.telescope,         10, Telescope
     19FIELD rawExp.camera,            10, Camera
     20FIELD rawExp.dateobs,           20, Date/Time
     21FIELD rawExp.filter,            10, FILTER
     22FIELD rawExp.ra,                 5, RA   
     23FIELD rawExp.decl,               5, Dec
     24FIELD rawExp.exp_time,           5, exp_time   
     25FIELD rawExp.sat_pixel_frac,     5, f(sat pixels)
     26FIELD rawExp.airmass,            5, airmass     
     27FIELD chipProcessedImfile.bg,                    5, backgnd
     28FIELD chipProcessedImfile.bg_stdev,              5, stdev   
     29FIELD chipProcessedImfile.bg_mean_stdev,         5, &lt;backgnd&gt;
     30
     31FIELD chipProcessedImfile.n_stars,  5, Nstars
     32FIELD chipProcessedImfile.n_astrom, 5, Nastrom
     33FIELD chipProcessedImfile.sigma_ra, 5, sigma ra
     34FIELD chipProcessedImfile.fwhm,     5, FHWM
     35
     36# FIELD chipPendingExp.reduction,    20,   reduction
     37# FIELD chipPendingExp.guide_id,     20, guide ID
  • trunk/ippMonitor/def/detResidExp.d

    r14044 r14113  
    1414ARGS  ARG1 exp_id=$detResidExp.exp_id
    1515
    16 ARGS  ARG2 det_id=$detResidExp.det_id
    17 ARGS  ARG2 iteration=$detResidExp.iteration
    18 ARGS  ARG2 exp_id=$detResidExp.exp_id
     16ARGS  ARG2 detResidImfile.det_id=$detResidExp.det_id
     17ARGS  ARG2 detResidImfile.iteration=$detResidExp.iteration
     18ARGS  ARG2 detResidImfile.exp_id=$detResidExp.exp_id
    1919ARGS  ARG2 camera=$rawExp.camera
    2020ARGS  ARG2 basename=$detResidExp.path_base
  • trunk/ippMonitor/def/detResidImfile.d

    r14044 r14113  
    55
    66# the following WHERE clauses are added to all queries joined by AND
    7 WHERE detResidExp.exp_id = rawExp.exp_id
     7WHERE detResidImfile.exp_id = rawExp.exp_id
    88
    99#     field                         size   name        show  link to     extras
  • trunk/ippMonitor/raw/ipp.science.dat

    r12835 r14113  
    2929menutop   | menuselect   | plain   | Guide Processed Exp          |
    3030menulink  | menuselect   | link    | Chip Processed Exp           | chipProcessedExp.php           
     31menulink  | menuselect   | link    | Chip Processed Imfiles       | chipProcessedImfile.php           
    3132menulink  | menuselect   | link    | Cam Processed Exp            | camProcessedExp.php           
    3233menutop   | menutop      | plain   | &nbsp;                       |
Note: See TracChangeset for help on using the changeset viewer.