IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18193


Ignore:
Timestamp:
Jun 19, 2008, 6:15:23 AM (18 years ago)
Author:
eugene
Message:

all sorts of updates to the format; up/down icons, etc

Location:
trunk/ippMonitor
Files:
33 edited

Legend:

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

    r18143 r18193  
    6969// set up the table
    7070echo "<table class=list>\n";
    71 echo "<tr>\n";
     71
     72// echo "<tr><td></td>\n"; // first field is a label set below for the query rows only
    7273// ** TABLE HEADER **
    73 echo "</tr>\n";
     74// echo "</tr>\n";
    7475
    7576// query restriction form
     
    8687  // ** TD CLASS **
    8788
    88   echo "<tr>\n";
     89  echo "<tr><td></td>\n";
    8990  // ** TABLE DATA **
    9091  echo "</tr>\n";
  • trunk/ippMonitor/def/camPendingExp.d

    r17012 r18193  
    2020FIELD rawExp.telescope,         10,   %s,     Telescope
    2121FIELD rawExp.camera,            10,   %s,     Camera
    22 FIELD rawExp.dateobs,           10,   %s,     Date/Time
     22FIELD rawExp.dateobs,           19,   %T,     Date/Time
    2323FIELD rawExp.ra,                 8,   %10.6f, RA,           op=OP1     
    2424FIELD rawExp.decl,               8,   %10.6f, DEC,          op=OP2
    2525FIELD rawExp.object,            10,   %s,     Object
    2626FIELD rawExp.filter,            10,   %s,     FILTER
    27 FIELD rawExp.exp_time,           5,   %s,     exp_time   
    28 FIELD rawExp.airmass,            5,   %s,     airmass     
    29 FIELD rawExp.bg,                 5,   %s,     backgnd
    30 FIELD rawExp.bg_stdev,           5,   %s,     stdev   
    31 FIELD rawExp.bg_mean_stdev,      5,   %s,     &lt;backgnd&gt;
    32 FIELD rawExp.sat_pixel_frac,     5,   %s,     f(sat pixels)
     27FIELD rawExp.exp_time,           5,   %.2f,   exp_time   
     28FIELD rawExp.airmass,            5,   %.4f,   airmass     
     29FIELD rawExp.bg,                 5,   %.2f,   backgnd
     30FIELD rawExp.bg_stdev,           5,   %.2f,   stdev   
     31FIELD rawExp.bg_mean_stdev,      5,   %.2f,   &lt;backgnd&gt;
     32FIELD rawExp.sat_pixel_frac,     5,   %.3f,   f(sat pixels)
  • trunk/ippMonitor/def/camProcessedExp.d

    r16530 r18193  
    2727
    2828#     field                             size  format  name          show         link to                  extras
    29 FIELD chipRun.exp_id,                    5,   %s,     Exp ID,       value,       chipProcessedImfile.php, ARG1
     29FIELD chipRun.exp_id,                    5,   %d,     Exp ID,       value,       chipProcessedImfile.php, ARG1
    3030FIELD rawExp.exp_name,                   5,   %s,     Exp Name,     value,       rawImfile.php,  ARG1
    31 FIELD chipRun.chip_id,                   5,   %s,     chip ID
    32 FIELD camRun.cam_id,                     5,   %s,     cam ID,       value,       chipProcessedExp.php,    ARG1
     31FIELD chipRun.chip_id,                   5,   %d,     chip ID
     32FIELD camRun.cam_id,                     5,   %d,     cam ID,       value,       chipProcessedExp.php,    ARG1
    3333FIELD *,                                 8,   %s,     image,        image=JPEG2, camProcessedImfile.php,  ARG2
    3434FIELD rawExp.telescope,                 10,   %s,     Telescope
    3535FIELD rawExp.camera,                    10,   %s,     Camera
    36 FIELD rawExp.dateobs,                   20,   %s,     Date/Time
     36FIELD rawExp.dateobs,                   19,   %T,     Date/Time
    3737FIELD rawExp.ra,                         8,   %10.6f, RA,           op=OP1     
    3838FIELD rawExp.decl,                       8,   %10.6f, DEC,          op=OP2
    3939FIELD rawExp.object,                    10,   %s,     Object
    4040FIELD rawExp.filter,                    10,   %s,     FILTER
    41 FIELD rawExp.exp_time,                   5,   %s,     exp_time   
    42 FIELD rawExp.airmass,                    5,   %s,     airmass     
     41FIELD rawExp.exp_time,                   5,   %.2f,     exp_time   
     42FIELD rawExp.airmass,                    5,   %.4f,     airmass     
    4343FIELD camRun.reduction,                  5,   %s,     reduction
    44 FIELD camProcessedExp.bg,                5,   %s,     backgnd
    45 FIELD camProcessedExp.bg_stdev,          5,   %s,     stdev   
    46 FIELD camProcessedExp.bg_mean_stdev,     5,   %s,     &lt;backgnd&gt;
    47 FIELD camProcessedExp.n_stars,           5,   %s,     Nstars
    48 FIELD camProcessedExp.n_astrom,          5,   %s,     Nastrom
    49 FIELD camProcessedExp.sigma_ra,          5,   %s,     sigma ra
    50 FIELD camProcessedExp.fwhm_major,        5,   %s,     FHWM (major)
     44FIELD camProcessedExp.bg,                5,   %.2f,     backgnd
     45FIELD camProcessedExp.bg_stdev,          5,   %.2f,     stdev   
     46FIELD camProcessedExp.bg_mean_stdev,     5,   %.2f,     &lt;backgnd&gt;
     47FIELD camProcessedExp.n_stars,           5,   %d,     Nstars
     48FIELD camProcessedExp.n_astrom,          5,   %d,     Nastrom
     49FIELD camProcessedExp.sigma_ra,          5,   %f,     sigma ra
     50FIELD camProcessedExp.fwhm_major,        5,   %f,     FHWM (major)
    5151FIELD camProcessedExp.path_base,         5,   %s,     path_base,    none
    5252FIELD rawExp.exp_id,                     5,   %s,     Exp ID,       none
  • trunk/ippMonitor/def/camProcessedExp_NoImages.d

    r16617 r18193  
    2828
    2929#     field                             size  format  name          show         link to                  extras
    30 FIELD chipRun.exp_id,                    5,   %s,     Exp ID,       value,       chipProcessedImfile.php, ARG1
     30FIELD chipRun.exp_id,                    5,   %d,     Exp ID,       value,       chipProcessedImfile.php, ARG1
    3131FIELD rawExp.exp_name,                   5,   %s,     Exp Name,     value,       rawImfile.php,  ARG1
    32 FIELD chipRun.chip_id,                   5,   %s,     chip ID
    33 FIELD camRun.cam_id,                     5,   %s,     cam ID,       value,       chipProcessedExp.php,    ARG1
     32FIELD chipRun.chip_id,                   5,   %d,     chip ID
     33FIELD camRun.cam_id,                     5,   %d,     cam ID,       value,       chipProcessedExp.php,    ARG1
    3434FIELD rawExp.telescope,                 10,   %s,     Telescope
    3535FIELD rawExp.camera,                    10,   %s,     Camera
    36 FIELD rawExp.dateobs,                   20,   %s,     Date/Time
     36FIELD rawExp.dateobs,                   19,   %T,     Date/Time
    3737FIELD rawExp.filter,                    10,   %s,     FILTER
    3838FIELD rawExp.ra,                         8,   %10.6f, RA,           op=OP1     
    3939FIELD rawExp.decl,                       8,   %10.6f, DEC,          op=OP2
    4040FIELD rawExp.object,                    10,   %s,     Object
    41 FIELD rawExp.exp_time,                   5,   %s,     exp_time   
    42 FIELD rawExp.airmass,                    5,   %s,     airmass     
     41FIELD rawExp.exp_time,                   5,   %.2f,     exp_time   
     42FIELD rawExp.airmass,                    5,   %.4f,     airmass     
    4343FIELD camRun.reduction,                  5,   %s,     reduction
    44 FIELD camProcessedExp.bg,                5,   %s,     backgnd
    45 FIELD camProcessedExp.bg_stdev,          5,   %s,     stdev   
    46 FIELD camProcessedExp.bg_mean_stdev,     5,   %s,     &lt;backgnd&gt;
    47 FIELD camProcessedExp.n_stars,           5,   %s,     Nstars
    48 FIELD camProcessedExp.n_astrom,          5,   %s,     Nastrom
    49 FIELD camProcessedExp.sigma_ra,          5,   %s,     sigma ra
    50 FIELD camProcessedExp.fwhm_major,        5,   %s,     FHWM (major)
     44FIELD camProcessedExp.bg,                5,   %.2f,     backgnd
     45FIELD camProcessedExp.bg_stdev,          5,   %.2f,     stdev   
     46FIELD camProcessedExp.bg_mean_stdev,     5,   %.2f,     &lt;backgnd&gt;
     47FIELD camProcessedExp.n_stars,           5,   %d,     Nstars
     48FIELD camProcessedExp.n_astrom,          5,   %d,     Nastrom
     49FIELD camProcessedExp.sigma_ra,          5,   %f,     sigma ra
     50FIELD camProcessedExp.fwhm_major,        5,   %f,     FHWM (major)
    5151FIELD camProcessedExp.path_base,         5,   %s,     path_base,    none
    5252FIELD rawExp.exp_id,                     5,   %s,     Exp ID,       none
  • trunk/ippMonitor/def/camProcessedExp_failure.d

    r16617 r18193  
    2828
    2929#     field                             size  format  name          show         link to                  extras
    30 FIELD chipRun.exp_id,                    5,   %s,     Exp ID,       value,       chipProcessedImfile.php, ARG1
     30FIELD chipRun.exp_id,                    5,   %d,     Exp ID,       value,       chipProcessedImfile.php, ARG1
    3131FIELD rawExp.exp_name,                   5,   %s,     Exp Name,     value,       rawImfile.php,  ARG1
    32 FIELD chipRun.chip_id,                   5,   %s,     chip ID
    33 FIELD camRun.cam_id,                     5,   %s,     cam ID,       value,       chipProcessedExp.php,    ARG1
     32FIELD chipRun.chip_id,                   5,   %d,     chip ID
     33FIELD camRun.cam_id,                     5,   %d,     cam ID,       value,       chipProcessedExp.php,    ARG1
    3434FIELD rawExp.telescope,                 10,   %s,     Telescope
    3535FIELD rawExp.camera,                    10,   %s,     Camera
    36 FIELD rawExp.dateobs,                   20,   %s,     Date/Time
     36FIELD rawExp.dateobs,                   19,   %T,     Date/Time
    3737FIELD rawExp.filter,                    10,   %s,     FILTER
    3838FIELD rawExp.ra,                         8,   %10.6f, RA,           op=OP1     
    3939FIELD rawExp.decl,                       8,   %10.6f, DEC,          op=OP2
    4040FIELD rawExp.object,                    10,   %s,     Object
    41 FIELD rawExp.exp_time,                   5,   %s,     exp_time   
    42 FIELD rawExp.airmass,                    5,   %s,     airmass     
     41FIELD rawExp.exp_time,                   5,   %.2f,     exp_time   
     42FIELD rawExp.airmass,                    5,   %.4f,     airmass     
    4343FIELD camRun.reduction,                  5,   %s,     reduction
    44 FIELD camProcessedExp.bg,                5,   %s,     backgnd
    45 FIELD camProcessedExp.bg_stdev,          5,   %s,     stdev   
    46 FIELD camProcessedExp.bg_mean_stdev,     5,   %s,     &lt;backgnd&gt;
    47 FIELD camProcessedExp.n_stars,           5,   %s,     Nstars
    48 FIELD camProcessedExp.n_astrom,          5,   %s,     Nastrom
    49 FIELD camProcessedExp.sigma_ra,          5,   %s,     sigma ra
    50 FIELD camProcessedExp.fwhm_major,        5,   %s,     FHWM (major)
     44FIELD camProcessedExp.bg,                5,   %.2f,     backgnd
     45FIELD camProcessedExp.bg_stdev,          5,   %.2f,     stdev   
     46FIELD camProcessedExp.bg_mean_stdev,     5,   %.2f,     &lt;backgnd&gt;
     47FIELD camProcessedExp.n_stars,           5,   %d,     Nstars
     48FIELD camProcessedExp.n_astrom,          5,   %d,     Nastrom
     49FIELD camProcessedExp.sigma_ra,          5,   %f,     sigma ra
     50FIELD camProcessedExp.fwhm_major,        5,   %f,     FHWM (major)
    5151FIELD camProcessedExp.path_base,         5,   %s,     path_base,    none
    5252FIELD rawExp.exp_id,                     5,   %s,     Exp ID,       none
  • trunk/ippMonitor/def/chipPendingExp.d

    r17013 r18193  
    1414
    1515#     field                   size  format  name         show    link to         extras
    16 FIELD chipRun.exp_id,            5, %s,     Exp ID
     16FIELD chipRun.exp_id,            5, %d,     Exp ID
    1717FIELD rawExp.exp_name,           5, %s,     Exp Name,    value,  rawImfile.php,  ARG1
    18 FIELD chipRun.chip_id,           7, %s,     chip ID
     18FIELD chipRun.chip_id,           7, %d,     chip ID
    1919FIELD rawExp.telescope,         10, %s,     Telescope
    2020FIELD rawExp.camera,            10, %s,     Camera
    21 FIELD rawExp.dateobs,           20, %s,     Date/Time
     21FIELD rawExp.dateobs,           19, %T,     Date/Time
    2222FIELD rawExp.ra,                 5, %10.6f, RA,          op=OP1   
    2323FIELD rawExp.decl,               5, %10.6f, DEC,         op=OP2
    2424FIELD rawExp.object,             8, %s,     Object
    25 FIELD rawExp.filter,             8, %s,     FILTER
    26 FIELD rawExp.exp_time,           5, %s,     exp_time   
    27 FIELD rawExp.airmass,            5, %s,     airmass     
    28 FIELD rawExp.bg,                 5, %8.2f,  backgnd
    29 FIELD rawExp.bg_stdev,           5, %7.2f,  stdev   
     25FIELD rawExp.filter,            10, %s,     FILTER
     26FIELD rawExp.exp_time,           5, %.2f,   exp_time   
     27FIELD rawExp.airmass,            5, %.4f,   airmass     
     28FIELD rawExp.bg,                 5, %.2f,   backgnd
     29FIELD rawExp.bg_stdev,           5, %.2f,   stdev   
    3030FIELD rawExp.comment,            5, %s,     CMMTOBS
    3131
  • trunk/ippMonitor/def/chipProcessedExp.d

    r15992 r18193  
    1515
    1616#     field                   size  format  name         show    link to                  extras
    17 FIELD chipRun.exp_id,            5, %s,     Exp ID,      value,  rawImfile.php,           ARG1
     17FIELD chipRun.exp_id,            5, %d,     Exp ID,      value,  rawImfile.php,           ARG1
    1818FIELD rawExp.exp_name,           5, %s,     Exp Name,    value,  chipProcessedImfile.php, ARG2
    19 FIELD chipRun.chip_id,           7, %s,     chip ID
     19FIELD chipRun.chip_id,           7, %d,     chip ID
    2020FIELD rawExp.telescope,         10, %s,     Telescope
    2121FIELD rawExp.camera,            10, %s,     Camera
    22 FIELD rawExp.dateobs,           20, %s,     Date/Time
     22FIELD rawExp.dateobs,           19, %T,     Date/Time
    2323FIELD rawExp.ra,                 8, %10.6f, RA,           op=OP1     
    2424FIELD rawExp.decl,               8, %10.6f, DEC,          op=OP2
    2525FIELD rawExp.object,            10, %s,     Object
    2626FIELD rawExp.filter,            10, %s,     FILTER
    27 FIELD rawExp.exp_time,           5, %s,     exp_time   
    28 FIELD rawExp.airmass,            5, %s,     airmass     
    29 FIELD rawExp.bg,                 5, %s,     backgnd
    30 FIELD rawExp.bg_stdev,           5, %s,     stdev   
     27FIELD rawExp.exp_time,           5, %.2f,     exp_time   
     28FIELD rawExp.airmass,            5, %.2f,     airmass     
     29FIELD rawExp.bg,                 5, %.2f,     backgnd
     30FIELD rawExp.bg_stdev,           5, %.2f,     stdev   
    3131
    3232# FIELD rawExp.bg_mean_stdev,    5, %s,     &lt;backgnd&gt;
  • trunk/ippMonitor/def/chipProcessedImfile.d

    r16617 r18193  
    2121
    2222#     field                            size  format  name         show    link to                  extras
    23 FIELD chipRun.exp_id,                     5, %s,     Exp ID,      value,  rawImfile.php,           ARG1
     23FIELD chipRun.exp_id,                     5, %d,     Exp ID,      value,  rawImfile.php,           ARG1
    2424FIELD rawExp.exp_name,                    5, %s,     Exp Name,    value,  chipProcessedImfile.php, ARG2
    2525FIELD chipProcessedImfile.class_id,       5, %s,     Class ID
    26 FIELD chipRun.chip_id,                    7, %s,     chip ID
     26FIELD chipRun.chip_id,                    7, %d,     chip ID
    2727FIELD rawExp.telescope,                  10, %s,     Telescope
    2828FIELD rawExp.camera,                     10, %s,     Camera
    29 FIELD rawExp.dateobs,                    20, %s,     Date/Time
     29FIELD rawExp.dateobs,                    19, %T,     Date/Time
    3030FIELD rawExp.filter,                     10, %s,     FILTER
    3131FIELD rawExp.ra,                          8, %10.6f, RA,           op=OP1     
    3232FIELD rawExp.decl,                        8, %10.6f, DEC,          op=OP2
    3333FIELD rawExp.object,                      8, %s,     Object
    34 FIELD rawExp.filter,                      8, %s,     Filter
    35 FIELD rawExp.exp_time,                    5, %s,     exp_time   
    36 FIELD rawExp.airmass,                     5, %s,     airmass     
    37 FIELD chipProcessedImfile.bg,             5, %s,     backgnd
    38 FIELD chipProcessedImfile.bg_stdev,       5, %s,     stdev   
    39 FIELD chipProcessedImfile.n_stars,        5, %s,     Nstars
    40 FIELD chipProcessedImfile.n_astrom,       5, %s,     Nastrom
    41 FIELD chipProcessedImfile.sigma_ra,       5, %s,     sigma ra
    42 FIELD chipProcessedImfile.fwhm_major,     5, %s,     FHWM
     34FIELD rawExp.exp_time,                    5, %.2f,     exp_time   
     35FIELD rawExp.airmass,                     5, %.4f,     airmass     
     36FIELD chipProcessedImfile.bg,             5, %.2f,     backgnd
     37FIELD chipProcessedImfile.bg_stdev,       5, %.2f,     stdev   
     38FIELD chipProcessedImfile.n_stars,        5, %d,     Nstars
     39FIELD chipProcessedImfile.n_astrom,       5, %d,     Nastrom
     40FIELD chipProcessedImfile.sigma_ra,       5, %f,     sigma ra
     41FIELD chipProcessedImfile.fwhm_major,     5, %f,     FHWM
    4342FIELD chipProcessedImfile.path_base,      5, %s,     path_base, none
    44 # FIELD chipPendingExp.reduction,        20, %s,     reduction
    45 # FIELD chipPendingExp.guide_id,         20, %s,     guide ID
    46 # FIELD chipProcessedImfile.bg_mean_stdev,  5, %s,     &lt;backgnd&gt;
    4743
    4844TAIL PHP insert_log ('LOG.IMFILE');
  • trunk/ippMonitor/def/chipProcessedImfile_failure.d

    r17059 r18193  
    2121
    2222#     field                            size  format  name         show    link to                  extras
    23 FIELD chipRun.exp_id,                     5, %s,     Exp ID,      value,  rawImfile.php,           ARG1
     23FIELD chipRun.exp_id,                     5, %d,     Exp ID,      value,  rawImfile.php,           ARG1
    2424FIELD rawExp.exp_name,                    5, %s,     Exp Name,    value,  chipProcessedImfile.php, ARG2
    2525FIELD chipProcessedImfile.class_id,       5, %s,     Class ID
    26 FIELD chipRun.chip_id,                    7, %s,     chip ID
     26FIELD chipRun.chip_id,                    7, %d,     chip ID
    2727FIELD rawExp.telescope,                  10, %s,     Telescope
    2828FIELD rawExp.camera,                     10, %s,     Camera
    29 FIELD rawExp.dateobs,                    20, %s,     Date/Time
     29FIELD rawExp.dateobs,                    19, %T,     Date/Time
    3030FIELD rawExp.filter,                     10, %s,     FILTER
    3131FIELD rawExp.ra,                          8, %10.6f, RA,           op=OP1     
    3232FIELD rawExp.decl,                        8, %10.6f, DEC,          op=OP2
    3333FIELD rawExp.object,                      8, %s,     Object
    34 FIELD rawExp.filter,                      8, %s,     Filter
    35 FIELD rawExp.exp_time,                    5, %s,     exp_time   
    36 FIELD rawExp.airmass,                     5, %s,     airmass     
    37 FIELD chipProcessedImfile.bg,             5, %s,     backgnd
    38 FIELD chipProcessedImfile.bg_stdev,       5, %s,     stdev   
    39 FIELD chipProcessedImfile.n_stars,        5, %s,     Nstars
    40 FIELD chipProcessedImfile.n_astrom,       5, %s,     Nastrom
    41 FIELD chipProcessedImfile.sigma_ra,       5, %s,     sigma ra
    42 FIELD chipProcessedImfile.fwhm_major,     5, %s,     FHWM
     34FIELD rawExp.exp_time,                    5, %.2f,   exp_time   
     35FIELD rawExp.airmass,                     5, %.4f,   airmass     
     36FIELD chipProcessedImfile.bg,             5, %.2f,   backgnd
     37FIELD chipProcessedImfile.bg_stdev,       5, %.2f,   stdev   
     38FIELD chipProcessedImfile.n_stars,        5, %d,     Nstars
     39FIELD chipProcessedImfile.n_astrom,       5, %d,     Nastrom
     40FIELD chipProcessedImfile.sigma_ra,       5, %f,     sigma ra
     41FIELD chipProcessedImfile.fwhm_major,     5, %f,     FHWM
    4342FIELD chipProcessedImfile.path_base,      5, %s,     path_base, none
    44 # FIELD chipPendingExp.reduction,        20, %s,     reduction
    45 # FIELD chipPendingExp.guide_id,         20, %s,     guide ID
    46 # FIELD chipProcessedImfile.bg_mean_stdev,  5, %s,     &lt;backgnd&gt;
    4743
    4844TAIL PHP insert_log ('LOG.IMFILE');
  • trunk/ippMonitor/def/detInputExp.d

    r15954 r18193  
    2626FIELD detInputExp.exp_id,     5, %s,     Exp ID,     value,       rawImfile.php,          ARG1
    2727FIELD rawExp.exp_name,        5, %s,     Exp Name,   value,       rawImfile.php,          ARG1
    28 FIELD detInputExp.include,    7, %s,     include
     28FIELD detInputExp.include,    3, %t,     include
    2929FIELD rawExp.telescope,      10, %s,     Telescope
    3030FIELD rawExp.camera,         10, %s,     Camera
    3131FIELD rawExp.exp_type,       10, %s,     Type   
    3232FIELD rawExp.filter,         10, %s,     FILTER
    33 FIELD rawExp.dateobs,        20, %s,     Date/Time
    34 FIELD rawExp.exp_time,        5, %s,     exp_time   
    35 FIELD rawExp.sat_pixel_frac,  5, %s,     f(sat pixels)
    36 FIELD rawExp.airmass,         5, %s,     airmass     
    37 FIELD rawExp.bg,              5, %s,     backgnd
    38 FIELD rawExp.bg_stdev,        5, %s,     stdev   
    39 FIELD rawExp.bg_mean_stdev,   5, %s,     &lt;backgnd&gt;
     33FIELD rawExp.dateobs,        19, %T,     Date/Time
     34FIELD rawExp.exp_time,        5, %.2f,   exp_time   
     35FIELD rawExp.sat_pixel_frac,  5, %.2f,   f(sat pixels)
     36FIELD rawExp.airmass,         5, %.4f,   airmass     
     37FIELD rawExp.bg,              5, %.2f,   backgnd
     38FIELD rawExp.bg_stdev,        5, %.2f,   stdev   
     39FIELD rawExp.bg_mean_stdev,   5, %.2f,   &lt;backgnd&gt;
    4040FIELD *,                      5, %s,     choose,     value=resid, detResidImfile.php,     ARG2
    4141FIELD *,                      5, %s,     choose,     value=proc,  detProcessedImfile.php, ARG3
     42
     43TD_CLASS det_off  $detInputExp.include == 0
  • trunk/ippMonitor/def/detProcessedExp.d

    r15954 r18193  
    1919
    2020#     field                    size     format  name       show          link to                 extras
    21 FIELD detProcessedExp.det_id,     7,    %s,     Det ID,    value
     21FIELD detProcessedExp.det_id,     7,    %d,     Det ID,    value
    2222FIELD rawExp.camera,             10,    %s,     camera,    value
    23 FIELD detProcessedExp.exp_id,     5,    %s,     Exp ID,    value
     23FIELD detProcessedExp.exp_id,     5,    %d,     Exp ID,    value
    2424FIELD rawExp.exp_name,            5,    %s,     Exp Name,  value
     25FIELD detProcessedExp.fault,      5,    %d,     Fault,     value
    2526FIELD *,                          8,    %s,     image,     image=JPEG2,  detProcessedImfile.php, ARG1
    26 FIELD detProcessedExp.bg,         8,    %s,     backgnd,   value
    27 FIELD detProcessedExp.bg_mean_stdev, 8, %s,     [stdev],   value
    28 FIELD detProcessedExp.bg_stdev,   8,    %s,     stdev,     value
    29 FIELD *,                          8,    %s,     S/N,       op=OP1
    30 FIELD rawExp.dateobs,             8,    %s,     obs date,  value
    31 FIELD rawExp.filter,              8,    %s,     filter,    value
    32 FIELD rawExp.exp_time,            8,    %s,     exptime,   value
    33 FIELD rawExp.ccd_temp,            8,    %s,     ccd temp,  value
    34 FIELD rawExp.airmass,             8,    %s,     airmass,   value
     27FIELD detProcessedExp.bg,         8,    %.3f,   backgnd,   value
     28FIELD detProcessedExp.bg_mean_stdev, 8, %.3f,   [stdev],   value
     29FIELD detProcessedExp.bg_stdev,   8,    %.3f,   stdev,     value
     30FIELD *,                          8,    %.3f,   S/N,       op=OP1
     31FIELD rawExp.dateobs,            19,    %T,     obs date,  value
     32FIELD rawExp.filter,             10,    %s,     filter,    value
     33FIELD rawExp.exp_time,            8,    %.2f,    exptime,   value
     34FIELD rawExp.ccd_temp,            8,    %.2f,    ccd temp,  value
     35FIELD rawExp.airmass,             8,    %.4f,    airmass,   value
    3536FIELD detProcessedExp.path_base, 20,    %s,     path_base, none
     37
     38# TD_CLASS det_off $detProcessedExp.fault > 0
    3639
    3740# note: you must include all desired fields, where ever they are used,
  • trunk/ippMonitor/def/detProcessedImfile.d

    r18143 r18193  
    1212FIELD rawExp.exp_name,                  5, %s,     Exp Name
    1313FIELD detProcessedImfile.class_id,      8, %s,     Chip ID
     14FIELD detProcessedImfile.fault,         5, %d,     Chip ID
    1415FIELD detProcessedImfile.bg,            8, %f,     backgnd
    1516FIELD detProcessedImfile.bg_stdev,      8, %s,     stdev
     
    1718FIELD detProcessedImfile.path_base,     10, %s,     path_base
    1819
     20TD_CLASS det_off $detProcessedImfile.fault > 0
     21
    1922TAIL PHP insert_image ('PPIMAGE.JPEG1');
    2023TAIL PHP insert_log ('LOG.EXP');
     24
  • trunk/ippMonitor/def/detResidExp.d

    r15954 r18193  
    1 TABLE detResidExp, rawExp
     1TABLE detResidExp, rawExp, detInputExp
    22TITLE detResidExp
    33FILE  detResidExp.php
     
    66# the following WHERE clauses are added to all queries joined by AND
    77WHERE detResidExp.exp_id = rawExp.exp_id
     8WHERE detResidExp.exp_id = detInputExp.exp_id
     9WHERE detResidExp.iteration = detInputExp.iteration
    810
    911# define image names to be used below
     
    2022ARGS  ARG2 basename=$detResidExp.path_base
    2123
    22 OP    OP1  $detResidExp.bg / $detResidExp.bin_stdev
     24OP    OP1  $detResidExp.bin_stdev > 0.0 ? $detResidExp.bg / $detResidExp.bin_stdev : NAN
    2325
    2426#     field                   size  format  name       show         link to              linkargs
     
    2830FIELD rawExp.exp_name,           5, %s,     Exp Name,  value,       rawImfile.php,       ARG1
    2931FIELD detResidExp.iteration,     5, %s,     iter,      value
     32FIELD detInputExp.include,       3, %t,     used,      value
     33FIELD detResidExp.accept,        3, %t,     keep,      value
     34FIELD detResidExp.fault,         4, %d,     fault,     value
    3035FIELD *,                         8, %s,     image,     image=JPEG2, detResidImfile.php,  ARG2
    31 FIELD detResidExp.bg,            8, %s,     backgnd,   value
    32 FIELD detResidExp.bg_mean_stdev, 8, %s,     [stdev]
    33 FIELD detResidExp.bg_stdev,      8, %s,     stdev,     value
    34 FIELD detResidExp.bin_stdev,     8, %s,     bin stdev, value
     36FIELD detResidExp.bg,            8, %.3f,   backgnd,   value
     37FIELD detResidExp.bg_mean_stdev, 8, %.3f,   [stdev],   value
     38FIELD detResidExp.bg_stdev,      8, %.3f,   stdev,     value
     39FIELD detResidExp.bin_stdev,     8, %.3f,   bin stdev, value
    3540FIELD *,                         8, %s,     S/N,       op=OP1
    36 FIELD detResidExp.fringe_0,      8, %s,     fringe,    value
    37 FIELD detResidExp.fringe_1,      8, %s,     fringe err, value
    38 FIELD detResidExp.fringe_2,      8, %s,     fringe stdev, value
    39 FIELD detResidExp.user_1,        8, %s,     dfringe,    value
    40 FIELD detResidExp.user_2,        8, %s,     dfringe err, value
    41 FIELD detResidExp.user_3,        8, %s,     dfringe stdev, value
    42 FIELD rawExp.dateobs,            8, %s,     obs date,  value
    43 FIELD rawExp.filter,             8, %s,     filter,    value
    44 FIELD rawExp.exp_time,           8, %s,     exptime,   value
    45 FIELD rawExp.ccd_temp,           8, %s,     ccd temp,  value
    46 FIELD rawExp.airmass,            8, %s,     airmass,   value
    47 FIELD detResidExp.accept,        4, %s,     keep,      value
     41FIELD detResidExp.fringe_0,      8, %.3f,   fringe,    value
     42FIELD detResidExp.fringe_1,      8, %.3f,   fringe err, value
     43FIELD detResidExp.fringe_2,      8, %.3f,   fringe stdev, value
     44FIELD detResidExp.user_1,        8, %.3f,   dfringe,    value
     45FIELD detResidExp.user_2,        8, %.3f,   dfringe err, value
     46FIELD detResidExp.user_3,        8, %.3f,   dfringe stdev, value
     47FIELD rawExp.dateobs,           19, %T,     obs date,  value
     48FIELD rawExp.filter,            10, %s,     filter,    value
     49FIELD rawExp.exp_time,           8, %.2f,   exptime,   value
     50FIELD rawExp.ccd_temp,           8, %.2f,   ccd temp,  value
     51FIELD rawExp.airmass,            8, %.4f,   airmass,   value
    4852FIELD detResidExp.path_base,    20, %s,     path_base, none
    4953
    50 TD_CLASS list_off $detResidExp.accept == 0
     54TD_CLASS det_drop $detInputExp.include == 1 && $detResidExp.accept == 0
     55TD_CLASS det_off  $detInputExp.include == 0 && $detResidExp.accept == 0
     56TD_CLASS det_add  $detInputExp.include == 0 && $detResidExp.accept == 1
  • trunk/ippMonitor/def/detStackedImfile.d

    r18131 r18193  
    88FIELD iteration,      5,  %s,    iteration
    99FIELD class_id,       8,  %s,    class_id
    10 FIELD bg,             8,  %s,    backgnd
    11 FIELD bg_stdev,       8,  %s,    stdev
    12 FIELD bg_mean_stdev,  8,  %s,    [stdev]
    13 FIELD fault,          5,  %s,    fault
     10FIELD fault,          5,  %d,    fault
     11FIELD bg,             8,  %f,    backgnd
     12FIELD bg_stdev,       8,  %f,    stdev
     13FIELD bg_mean_stdev,  8,  %f,    [stdev]
    1414FIELD uri,           20,  %s,    uri
    1515# FIELD recipe, 20,   recipe
  • trunk/ippMonitor/def/newExp.d

    r16617 r18193  
    77
    88#        field        size   format  name           show     link to         extras
    9 FIELD    exp_id,        5,   %s,     exposure ID
     9FIELD    exp_id,        5,   %d,     exposure ID
    1010FIELD    tmp_exp_name,  10,  %s,     exposure Name
    1111FIELD    tmp_camera,    5,   %s,     camera
  • trunk/ippMonitor/def/newImfile.d

    r16617 r18193  
    55
    66#        field       size  format  name           show   link to         extras
    7 FIELD    exp_id,        5, %s,     exposure ID
     7FIELD    exp_id,        5, %d,     exposure ID
    88FIELD    tmp_class_id,  5, %s,     class ID
    99FIELD    uri,           5, %s,     URI
  • trunk/ippMonitor/def/pzDoneExp.d

    r16638 r18193  
    1313FIELD    summitExp.camera,      5,   %s,     camera
    1414FIELD    summitExp.telescope,   5,   %s,     telescope
    15 FIELD    summitExp.dateobs,     5,   %s,     date/time
     15FIELD    summitExp.dateobs,    19,   %T,     date/time
    1616FIELD    summitExp.exp_type,    5,   %s,     type
    1717FIELD    summitExp.uri,         5,   %s,     URI
  • trunk/ippMonitor/def/pzDoneExp_failed.d

    r16617 r18193  
    1616FIELD    summitExp.camera,      5,   %s,     camera
    1717FIELD    summitExp.telescope,   5,   %s,     telescope
    18 FIELD    summitExp.dateobs,     5,   %s,     date/time
     18FIELD    summitExp.dateobs,     5,   %T,     date/time
    1919FIELD    summitExp.exp_type,    5,   %s,     type
    2020FIELD    summitExp.uri,         5,   %s,     URI
  • trunk/ippMonitor/def/pzPendingExp.d

    r16638 r18193  
    1313FIELD    summitExp.camera,      5,   %s,     camera
    1414FIELD    summitExp.telescope,   5,   %s,     telescope
    15 FIELD    summitExp.dateobs,     5,   %s,     date/time
     15FIELD    summitExp.dateobs,     5,   %T,     date/time
    1616FIELD    summitExp.exp_type,    5,   %s,     type
    1717FIELD    summitExp.uri,         5,   %s,     URI
  • trunk/ippMonitor/def/rawDetrendExp.d

    r16617 r18193  
    1010
    1111#        field          size  format  name       show     link to         extras
    12 FIELD    exp_id,        5,    %s,     Exp ID
    13 FIELD    exp_name,      10,   %s,     Exp Name,  value,   rawImfile.php,  ARG1
    14 FIELD    telescope,     10,   %s,     Telescope
    15 FIELD    camera,        10,   %s,     Camera
    16 FIELD    exp_type,      10,   %s,     Type   
     12FIELD    exp_id,         5,   %d,     Exp ID
     13FIELD    exp_name,       8,   %s,     Exp Name,  value,   rawImfile.php,  ARG1
     14FIELD    telescope,      8,   %s,     Telescope
     15FIELD    camera,         8,   %s,     Camera
     16FIELD    exp_type,       8,   %s,     Type   
     17FIELD    dateobs,       19,   %T,     Date/Time
    1718FIELD    filter,        10,   %s,     FILTER
    18 FIELD    dateobs,       20,   %s,     Date/Time
    19 FIELD    exp_time,       5,   %s,     exp_time   
    20 FIELD    sat_pixel_frac, 5,   %s,     f(sat pixels)
    21 FIELD    airmass,        5,   %s,     airmass     
    22 FIELD    bg,             5,   %s,     backgnd
    23 FIELD    bg_stdev,       5,   %s,     stdev   
    24 FIELD    bg_mean_stdev,  5,   %s,     &lt;backgnd&gt;
     19FIELD    airmass,        5,   %.2f,   airmass     
     20FIELD    exp_time,       5,   %.2f,    exp_time   
     21FIELD    ccd_temp,       5,   %.2f,   ccd_temp
     22FIELD    sat_pixel_frac, 5,   %.4f,   f(sat pixels)
     23FIELD    bg,             5,   %.2f,   backgnd
     24FIELD    bg_stdev,       5,   %.2f,   stdev   
     25FIELD    bg_mean_stdev,  5,   %.2f,   &lt;backgnd&gt;
  • trunk/ippMonitor/def/rawDetrendExp_detrend.d

    r15992 r18193  
    1010
    1111#        field          size  format  name           show     link to         extras
    12 FIELD    exp_id,         5,   %s,     Exp ID
     12FIELD    exp_id,         5,   %d,     Exp ID
    1313FIELD    exp_name,      10,   %s,     Exp Name,     value,   rawImfile.php,  ARG1
    1414FIELD    telescope,     10,   %s,     Telescope
     
    1616FIELD    exp_type,      10,   %s,     Type   
    1717FIELD    filter,        10,   %s,     FILTER
    18 FIELD    dateobs,       20,   %s,     Date/Time
    19 FIELD    exp_time,       5,   %s,     exp_time   
    20 FIELD    sat_pixel_frac, 5,   %s,     f(sat pixels)
    21 FIELD    airmass,        5,   %s,     airmass     
    22 FIELD    bg,             5,   %s,     backgnd
    23 FIELD    bg_stdev,       5,   %s,     stdev   
    24 FIELD    bg_mean_stdev,  5,   %s,     &lt;backgnd&gt;
     18FIELD    dateobs,       19,   %T,     Date/Time
     19FIELD    exp_time,       5,   %.2f,   exp_time   
     20FIELD    sat_pixel_frac, 5,   %.2f,   f(sat pixels)
     21FIELD    airmass,        5,   %.4f,   airmass     
     22FIELD    bg,             5,   %.2f,   backgnd
     23FIELD    bg_stdev,       5,   %.2f,   stdev   
     24FIELD    bg_mean_stdev,  5,   %.2f,   &lt;backgnd&gt;
  • trunk/ippMonitor/def/rawExp.d

    r16617 r18193  
    1010
    1111#        field        size format  name           show          link to   extras
    12 FIELD    exp_id,       5,  %s,     Exp ID
     12FIELD    exp_id,       5,  %d,     Exp ID
    1313FIELD    exp_name,    10,  %s,     Exp Name,     value,   rawImfile.php,  ARG1
    1414FIELD    telescope,   10,  %s,     Telescope
    1515FIELD    camera,      10,  %s,     Camera
    1616FIELD    exp_type,     8,  %s,     Type   
    17 FIELD    dateobs,      8,  %s,     Date/Time
     17FIELD    dateobs,     19,  %T,     Date/Time
    1818FIELD    ra,           8,  %10.6f, RA,           op=OP1     
    1919FIELD    decl,         8,  %10.6f, DEC,          op=OP2
    2020FIELD    object,      10,  %s,     object
    2121FIELD    filter,      10,  %s,     FILTER
    22 FIELD    airmass,      5,  %s,     airmass     
    23 FIELD    exp_time,     5,  %s,     exp_time   
    24 FIELD    bg,           5,  %s,     bg         
    25 FIELD    bg_stdev,     5,  %s,     bg_stdev   
    26 # FIELD    imfiles, 20,   imfiles     
    27 # FIELD    bg_mean_stdev, 20,   bg_mean_stdev   
    28 # FIELD    alt, 20,   alt         
    29 # FIELD    az, 20,   az         
    30 # FIELD    ccd_temp, 20,   ccd_temp   
    31 # FIELD    posang, 20,   posang     
     22FIELD    airmass,      5,  %.4f,   airmass     
     23FIELD    exp_time,     5,  %.2f,   exp_time   
     24FIELD    ccd_temp,     5,  %.2f,   ccd_temp
     25FIELD    bg,           8,  %.2f,   backgnd
     26FIELD    bg_stdev,     8,  %.2f,   stdev
     27FIELD    bg_mean_stdev, 8, %.2f,   [stdev]
  • trunk/ippMonitor/def/rawExp_failed.d

    r16617 r18193  
    2121FIELD    decl,         8,  %10.6f, DEC,          op=OP2
    2222FIELD    filter,      10,   %s,     FILTER
    23 FIELD    dateobs,     20,   %s,     Date/Time
     23FIELD    dateobs,     19,   %T,     Date/Time
    2424FIELD    exp_time,     5,   %s,     exp_time   
    2525FIELD    airmass,      5,   %s,     airmass     
  • trunk/ippMonitor/def/rawImfile.d

    r15992 r18193  
    1010
    1111#        field       size  format  name   show         link to         extras
    12 FIELD    exp_id,        5, %s,      Exp ID
     12FIELD    exp_id,        5, %d,      Exp ID
    1313FIELD    exp_name,      5, %s,      Exposure
     14FIELD    telescope,    10, %s,      Telescope
     15FIELD    camera,       10, %s,      Camera
    1416FIELD    class_id,      8, %s,      Chip ID
     17FIELD    exp_type,      8, %s,      exp_type
     18FIELD    dateobs,      19, %T,      Date/Time
    1519FIELD    ra,            8, %10.6f,  RA,           op=OP1     
    1620FIELD    decl,          8, %10.6f,  DEC,          op=OP2
    1721FIELD    object,        8, %s,      object
    18 FIELD    filter,        8, %s,      FILTER
    19 FIELD    airmass,       5, %s,      airmass     
    20 FIELD    exp_time,      5, %s,      exp_time   
    21 FIELD    bg,            8, %s,      backgnd
    22 FIELD    bg_stdev,      8, %s,      stdev
    23 FIELD    bg_mean_stdev, 8, %s,      [stdev]
    24 FIELD    exp_type,      8, %s,      exp_type
     22FIELD    filter,       10, %s,      FILTER
     23FIELD    airmass,       5, %.4f,    airmass     
     24FIELD    exp_time,      5, %.2f,    exp_time   
     25FIELD    ccd_temp,      5, %.2f,    ccd_temp
     26FIELD    bg,            8, %.2f,    backgnd
     27FIELD    bg_stdev,      8, %.2f,    stdev
     28FIELD    bg_mean_stdev, 8, %.2f,    [stdev]
    2529FIELD    uri,          10, %s,      uri
    26 # FIELD    airmass,   20,   airmass
    27 # FIELD    exp_time,  20,   exp_time
    2830# FIELD    alt,       20,   alt
    2931# FIELD    az,        20,   az
    30 # FIELD    ccd_temp,  20,   ccd_temp
    3132# FIELD    posang,    20,   posang
    3233# FIELD    object,    20,   object
  • trunk/ippMonitor/def/rawScienceExp.d

    r16617 r18193  
    1313
    1414#        field        size format  name           show          link to   extras
    15 FIELD    exp_id,       5,  %s,     Exp ID
     15FIELD    exp_id,       5,  %d,     Exp ID
    1616FIELD    exp_name,     8,  %s,     Exp Name,     value,   rawImfile.php,  ARG1
    1717FIELD    telescope,    8,  %s,     Telescope
    1818FIELD    camera,       8,  %s,     Camera
    19 FIELD    dateobs,      8,  %s,     Date/Time
     19FIELD    dateobs,     19,  %T,     Date/Time
    2020FIELD    ra,           8,  %10.6f, RA,           op=OP1     
    2121FIELD    decl,         8,  %10.6f, DEC,          op=OP2
    2222FIELD    object,       8,  %s,     object
    23 FIELD    filter,       8,  %s,     FILTER
     23FIELD    filter,      10,  %s,     FILTER
    2424FIELD    exp_time,     5,  %s,     exp_time   
    25 FIELD    airmass,      5,  %s,     airmass     
    26 FIELD    bg,           5,  %s,     bg         
    27 FIELD    bg_stdev,     5,  %s,     bg_stdev   
    28 # FIELD    imfiles, 20,   imfiles     
    29 # FIELD    bg_mean_stdev, 20,   bg_mean_stdev   
    30 # FIELD    alt, 20,   alt         
    31 # FIELD    az, 20,   az         
    32 # FIELD    ccd_temp, 20,   ccd_temp   
    33 # FIELD    posang, 20,   posang     
    34 # FIELD    exp_type,     8,  %s,     Type   
     25FIELD    airmass,      5,  %.4f,   airmass     
     26FIELD    exp_time,     5,  %.2f,   exp_time   
     27FIELD    ccd_temp,     5,  %.2f,   ccd_temp
     28FIELD    bg,           8,  %.2f,   backgnd
     29FIELD    bg_stdev,     8,  %.2f,   stdev
     30FIELD    bg_mean_stdev, 8, %.2f,   [stdev]
  • trunk/ippMonitor/def/rawUnknownExp.d

    r16617 r18193  
    1818FIELD    telescope,   10,   %s,     Telescope
    1919FIELD    camera,      10,   %s,     Camera
    20 FIELD    dateobs,     20,   %s,     Date/Time
     20FIELD    dateobs,     19,   %T,     Date/Time
    2121FIELD    ra,           8,  %10.6f, RA,           op=OP1     
    2222FIELD    decl,         8,  %10.6f, DEC,          op=OP2
  • trunk/ippMonitor/def/stackInputSkyfile.d

    r15992 r18193  
    2222FIELD    rawExp.telescope,            10,   %s,     Telescope
    2323FIELD    rawExp.camera,               10,   %s,     Camera
    24 FIELD    rawExp.dateobs,              20,   %s,     Date/Time
     24FIELD    rawExp.dateobs,              19,   %T,     Date/Time
    2525FIELD    rawExp.ra,                    8,   %10.6f, RA,           op=OP1     
    2626FIELD    rawExp.decl,                  8,   %10.6f, DEC,          op=OP2
    2727FIELD    rawExp.object,                8,   %s,     Object
    28 FIELD    rawExp.filter,                8,   %s,     Filter
    29 FIELD    rawExp.exp_time,              5,   %s,     exptime   
    30 FIELD    rawExp.airmass,               5,   %s,     airmass
    31 FIELD    rawExp.bg,                    5,   %s,     bg
    32 FIELD    rawExp.bg_stdev,              5,   %s,     bg_stdev
     28FIELD    rawExp.filter,               10,   %s,     Filter
     29FIELD    rawExp.exp_time,              5,   %.2f,   exptime   
     30FIELD    rawExp.airmass,               5,   %.4f,   airmass
     31FIELD    rawExp.bg,                    5,   %.2f,   bg
     32FIELD    rawExp.bg_stdev,              5,   %.2f,   bg_stdev
  • trunk/ippMonitor/def/summitExp.d

    r16617 r18193  
    88FIELD    camera,      5,    %s,     camera
    99FIELD    telescope,   5,    %s,     telescope
    10 FIELD    dateobs,     5,    %s,     date/time
     10FIELD    dateobs,    19,    %T,     date/time
    1111FIELD    exp_type,    5,    %s,     type
    1212FIELD    uri,         5,    %s,     URI
  • trunk/ippMonitor/def/warpInputExp.d

    r15992 r18193  
    1818FIELD    warpInputExp.warp_id,         5,   %s,     Warp ID
    1919FIELD    warpInputExp.magiced,         5,   %s,     magic?
    20 FIELD    rawExp.telescope,            10,   %s,     Telescope
    21 FIELD    rawExp.camera,               10,   %s,     Camera
    22 FIELD    rawExp.dateobs,              20,   %s,     Date/Time
     20FIELD    rawExp.telescope,             8,   %s,     Telescope
     21FIELD    rawExp.camera,                8,   %s,     Camera
     22FIELD    rawExp.dateobs,              19,   %T,     Date/Time
    2323FIELD    rawExp.ra,                    8,   %10.6f, RA,           op=OP1     
    2424FIELD    rawExp.decl,                  8,   %10.6f, DEC,          op=OP2
    2525FIELD    rawExp.object,                8,   %s,     Object
    26 FIELD    rawExp.filter,                8,   %s,     Filter
    27 FIELD    rawExp.exp_time,              5,   %s,     exptime   
    28 FIELD    rawExp.airmass,               5,   %s,     airmass
    29 FIELD    rawExp.bg,                    5,   %s,     bg
    30 FIELD    rawExp.bg_stdev,              5,   %s,     bg_stdev
     26FIELD    rawExp.filter,               10,   %s,     Filter
     27FIELD    rawExp.exp_time,              5,   %.2f,   exptime   
     28FIELD    rawExp.airmass,               5,   %.4f,   airmass
     29FIELD    rawExp.bg,                    5,   %.2f,   bg
     30FIELD    rawExp.bg_stdev,              5,   %.2f,   bg_stdev
  • trunk/ippMonitor/def/warpSkycellMap.d

    r16035 r18193  
    2424FIELD    rawExp.telescope,            10,   %s,     Telescope
    2525FIELD    rawExp.camera,               10,   %s,     Camera
    26 FIELD    rawExp.dateobs,              20,   %s,     Date/Time
     26FIELD    rawExp.dateobs,              19,   %T,     Date/Time
    2727FIELD    rawExp.ra,                    8,   %10.6f, RA,           op=OP1     
    2828FIELD    rawExp.decl,                  8,   %10.6f, DEC,          op=OP2
    2929FIELD    rawExp.object,                8,   %s,     Object
    30 FIELD    rawExp.filter,                8,   %s,     Filter
    31 FIELD    rawExp.exp_time,              5,   %s,     exptime   
    32 FIELD    rawExp.airmass,               5,   %s,     airmass
    33 FIELD    rawExp.bg,                    5,   %s,     bg
    34 FIELD    rawExp.bg_stdev,              5,   %s,     bg_stdev
     30FIELD    rawExp.filter,               10,   %s,     Filter
     31FIELD    rawExp.exp_time,              5,   %.2f,   exptime   
     32FIELD    rawExp.airmass,               5,   %.4f,   airmass
     33FIELD    rawExp.bg,                    5,   %.2f,   bg
     34FIELD    rawExp.bg_stdev,              5,   %.2f,   bg_stdev
  • trunk/ippMonitor/raw/ipp.css

    r13725 r18193  
    112112}
    113113
     114td.list_drop  {
     115           text-align: left;
     116           font-size: normal; 
     117           font-weight: normal; 
     118           vertical-align: top;
     119           background: #a0a0a0;
     120           background-color: #a0a0a0;
     121           border: 2px solid #000000;
     122           padding: 2px;
     123}
     124
    114125td.list_run  {
    115126           text-align: left;
     
    119130           background: #ffa0a0;
    120131           background-color: #ffa0a0;
     132           border: 2px solid #000000;
     133           padding: 2px;
     134}
     135
     136td.det_off  {
     137           text-align: left;
     138           font-size: normal; 
     139           font-weight: normal; 
     140           vertical-align: top;
     141           background: #a0a0a0;
     142           background-color: #a0a0a0;
     143           border: 2px solid #000000;
     144           padding: 2px;
     145}
     146
     147td.det_drop  {
     148           text-align: left;
     149           font-size: normal; 
     150           font-weight: normal; 
     151           vertical-align: top;
     152           background: #a0a0a0;
     153           background-color: #ffa0a0;
     154           border: 2px solid #000000;
     155           padding: 2px;
     156}
     157
     158td.det_add  {
     159           text-align: left;
     160           font-size: normal; 
     161           font-weight: normal; 
     162           vertical-align: top;
     163           background: #ffa0a0;
     164           background-color: #a0a0ff;
    121165           border: 2px solid #000000;
    122166           padding: 2px;
  • trunk/ippMonitor/raw/ipp.php

    r18143 r18193  
    315315    $sortKey = "&sort=" . $_POST['sort'];
    316316  }
     317  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     318    $sortKey = "&rsort=" . $_GET['rsort'];
     319  } else {
     320    $sortKey = "&rsort=" . $_POST['rsort'];
     321  }
    317322
    318323  if ($rowStart > 0) {
     
    410415  if ($value != "") {
    411416    $where = $where . " ORDER BY $value";
     417    return $where;
     418  }
     419  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     420    $value = $_GET['rsort'];
     421  } else {
     422    $value = $_POST['rsort'];
     423  }
     424  if ($value != "") {
     425    $where = $where . " ORDER BY $value DESC";
     426    return $where;
    412427  }
    413428  return $where;
     
    432447}
    433448
    434 // for numerical fields, test for both 'min' and 'max' values
     449// for numerical fields, test for both 'min' and plain values
    435450function button_restrict_min ($key, $line) {
    436451  $htmlkey = preg_replace ('|\.|', '_', $key);
     
    470485}
    471486
    472 function write_table_header ($class, $name, $value, $buttonLink, $ID, $file) {
    473 
    474   $link = "$file" . "?" . $ID['link'] . "&sort=$value";
     487function write_header_cell ($class, $name) {
     488
     489  echo "<th class=\"$class\">$name</th>\n";
     490}
     491
     492// write a table cell with the up and down sort arrows
     493function write_sort_cell ($class, $value, $buttonLink, $ID, $file) {
     494 
     495  echo "<td class=\"$class\">";
     496
     497  // base link
     498  $baselink = "$file" . "?" . $ID['link'];
     499  if ($buttonLink != "") {
     500    $baselink = $baselink . "&$buttonLink";
     501  }
     502
     503  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     504    $up   = $_GET['sort'];
     505    $down = $_GET['rsort'];
     506  } else {
     507    $up   = $_POST['sort'];
     508    $down = $_POST['rsort'];
     509  }
     510
     511  // up button link
     512  $link = "$baselink" . "&sort=$value";
     513  if ($up == $value) {
     514    echo "<a href=\"$link\"><img src=\"up.png\"></a>";
     515  } else {
     516    echo "<a href=\"$link\"><img src=\"left.png\"></a>";
     517  }
     518
     519  // down button link
     520  $link = "$baselink" . "&rsort=$value";
     521  if ($down == $value) {
     522    echo "<a href=\"$link\"><img src=\"down.png\"></a>";
     523  } else {
     524    echo "<a href=\"$link\"><img src=\"right.png\"></a>";
     525  }
     526
     527  echo "</td>\n";
     528}
     529
     530function write_write_sort_down ($class, $name, $value, $buttonLink, $ID, $file) {
     531
     532  $link = "$file" . "?" . $ID['link'] . "&rsort=$value";
    475533  if ($buttonLink != "") {
    476534    $link = $link . "&$buttonLink";
     
    483541function write_query_row ($key, $width, $mode) {
    484542  $htmlkey = preg_replace ('|\.|', '_', $key);
     543
     544  // optional bits by mode
    485545  if ($mode == 'min') {
    486546    $htmlkey = $htmlkey . "_min";
     
    494554    $value = $_POST[$htmlkey];
    495555  }
    496   // XXX need to modify $key (should it be htmlkey here?)
     556
     557  // full table element includes optionally the <= or >= words
     558  echo "<td class=\"list\"> <input type=\"text\" name=\"$htmlkey\" size=\"$width\"";
    497559  if ($value != "") {
    498     echo "<td class=\"list\"> <input type=\"text\" name=\"$htmlkey\" size=\"$width\" value=\"$value\"> </td>\n";
    499   } else {
    500     echo "<td class=\"list\"> <input type=\"text\" name=\"$htmlkey\" size=\"$width\"> </td>\n";
    501   }
     560    echo "value=\"$value\">";
     561  }
     562  echo "</td>\n";
    502563}
    503564
    504565function write_table_cell ($class, $format, $link, $value) {
     566
     567  if ($format == '%T') {
     568    $format = '%s';
     569  }
     570  if ($format == '%t') {
     571    $format = '%s';
     572    if ($value == 0) {
     573      $value = 'N';
     574    } else {
     575      $value = 'Y';
     576    }
     577  }
     578
    505579  $myValue = sprintf ($format, $value);
    506580  if ($myValue == "") { $myValue = "&nbsp;"; }
  • trunk/ippMonitor/scripts/generate

    r18143 r18193  
    228228sub write_table_header {
    229229
    230     # add column sorting elements here
     230    # print the table header (field labels)
     231    print FILE "echo \"<tr><td></td>\\n\";\n";
    231232    for ($i = 0; $i < @field; $i++) {
    232233        ($label, $value, $string) = &parse_label ($show[$i]);
    233234        if ($show[$i] eq "none")  { next; }
    234         # print FILE "echo \"<th class=\\\"list\\\"> $name[$i] </th>\\n\";\n";
     235        print FILE "write_header_cell (\"list\", \"$name[$i]\");\n";
     236    }
     237    print FILE "echo \"</tr>\\n\";\n";
     238
     239    # print the column sort cells
     240    print FILE "echo \"<tr><td></td>\\n\";\n";
     241    for ($i = 0; $i < @field; $i++) {
     242        ($label, $value, $string) = &parse_label ($show[$i]);
     243        if ($show[$i] eq "none")  { next; }
    235244        if ($label eq "op") {
    236             print FILE "write_table_header (\"list\", \"$name[$i]\", \"$opf{$value}\", \$buttonLink, \$ID, '$myFile');\n";
     245            print FILE "write_sort_cell (\"list\", \"$opf{$value}\", \$buttonLink, \$ID, '$myFile');\n";
    237246        } else {
    238             print FILE "write_table_header (\"list\", \"$name[$i]\", \"$field[$i]\", \$buttonLink, \$ID, '$myFile');\n";
    239         }
    240     }
     247            print FILE "write_sort_cell (\"list\", \"$field[$i]\", \$buttonLink, \$ID, '$myFile');\n";
     248        }
     249    }
     250    print FILE "echo \"</tr>\\n\";\n";
    241251}
    242252
     
    248258
    249259        # TD_CLASS class field expression
    250         ($class, $field, $testline) = split (" ", $tdClass, 3);
    251 
    252         $field = &parse_fieldname ($field);
    253 
    254         print FILE "  if ($field $testline) {\n";
     260        ($class, $testline) = split (" ", $tdClass, 2);
     261
     262        $testlineFixed = "";
     263        @testlineBits = split (" ", $testline);
     264        foreach my $bit (@testlineBits) {
     265            $newbit = &parse_fieldname ($bit);
     266            $testlineFixed = "$testlineFixed $newbit";
     267        }
     268
     269        print FILE "  if ($testlineFixed) {\n";
    255270        print FILE "    \$class = \"$class\";\n";
    256271        print FILE "  }\n";
     
    270285            print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string');\n";
    271286        } else {
     287            print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string');\n";
    272288            print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min');\n";
    273289            print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max');\n";
     
    286302            print FILE "\$buttonLink = button_restrict_string ('$value', \$buttonLink);\n";
    287303        } else {
     304            print FILE "\$buttonLink = button_restrict_string ('$value', \$buttonLink);\n";
    288305            print FILE "\$buttonLink = button_restrict_min ('$value', \$buttonLink);\n";
    289306            print FILE "\$buttonLink = button_restrict_max ('$value', \$buttonLink);\n";
     
    297314    my ($i);
    298315
    299     print FILE "echo \"<tr>\\n\";\n";
     316    print FILE "echo \"<tr><td>&ge</td>\\n\";\n";
    300317    for ($i = 0; $i < @field; $i++) {
    301318        if ($show[$i] eq "none")  { next; }
     
    311328        }
    312329    }
    313     print FILE "echo \"</tr> <tr>\\n\";\n";
     330    print FILE "echo \"</tr><tr><td>&le</td>\\n\";\n";
    314331    for ($i = 0; $i < @field; $i++) {
    315332        if ($show[$i] eq "none")  { next; }
     
    347364            # print the actual table cell line with the link...
    348365            if (! $value && ($field[$i] ne "*")) { $value = "\$row[$Nrow]"; }
     366
     367            # add special format elements
     368            # $realFormat = $format[$i];
     369            # if ($format[$i] eq '%T') {
     370            #   $realFormat = '%s';
     371            # }
    349372            print FILE "  write_table_cell (\$class, '$format[$i]', $myLink, $value);\n";
    350373            next;
     
    557580    foreach $word (@words) {
    558581        $fword = &parse_fieldname ($word);
     582        # print "field: $word -> $fword\n";
    559583        push @outwords, $fword;
    560584        if ($word =~ m|^\$|) {
Note: See TracChangeset for help on using the changeset viewer.