IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18970


Ignore:
Timestamp:
Aug 8, 2008, 9:01:19 AM (18 years ago)
Author:
eugene
Message:

various updates

Location:
trunk/ippMonitor
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/camPendingExp.d

    r18193 r18970  
    1414
    1515#     field                     size  format  name          show   link to                  extras
    16 FIELD chipRun.exp_id,            5,   %s,     exposure ID,  value, chipProcessedImfile.php, ARG1
     16FIELD chipRun.exp_id,            5,   %s,     Exp ID,       value, chipProcessedImfile.php, ARG1
    1717FIELD rawExp.exp_name,           5,   %s,     Exp Name,     value, rawImfile.php,  ARG1
    1818FIELD chipRun.chip_id,           5,   %s,     chip ID,      value, chipProcessedExp.php,    ARG1
    1919FIELD camRun.cam_id,             5,   %s,     cam ID
     20FIELD camRun.state,              5,   %s,     state
    2021FIELD rawExp.telescope,         10,   %s,     Telescope
    2122FIELD rawExp.camera,            10,   %s,     Camera
     
    2930FIELD rawExp.bg,                 5,   %.2f,   backgnd
    3031FIELD rawExp.bg_stdev,           5,   %.2f,   stdev   
    31 FIELD rawExp.bg_mean_stdev,      5,   %.2f,   <backgnd>
    32 FIELD rawExp.sat_pixel_frac,     5,   %.3f,   f(sat pixels)
     32FIELD rawExp.comment,           65,   %s,     Comment
     33
     34# FIELD rawExp.bg_mean_stdev,    5,   %.2f,   <backgnd>
  • trunk/ippMonitor/def/camProcessedExp.d

    r18313 r18970  
    99WHERE chipRun.exp_id = rawExp.exp_id
    1010WHERE camProcessedExp.cam_id  = camRun.cam_id
     11WHERE camProcessedExp.fault = 0
    1112
    1213# define image names to be used below
     
    4041FIELD rawExp.exp_time,                   5,   %.2f,     exp_time   
    4142FIELD rawExp.airmass,                    5,   %.4f,     airmass     
    42 FIELD camRun.reduction,                  5,   %s,     reduction
    4343FIELD camProcessedExp.bg,                5,   %.2f,     backgnd
    4444FIELD camProcessedExp.bg_stdev,          5,   %.2f,     stdev   
    45 FIELD camProcessedExp.bg_mean_stdev,     5,   %.2f,     <backgnd>
    4645FIELD camProcessedExp.n_stars,           5,   %d,     Nstars
    4746FIELD camProcessedExp.n_astrom,          5,   %d,     Nastrom
    4847FIELD camProcessedExp.sigma_ra,          5,   %f,     sigma ra
    4948FIELD camProcessedExp.fwhm_major,        5,   %f,     FHWM (major)
     49FIELD rawExp.comment,                   65, %s,     Comment
     50
    5051FIELD camProcessedExp.path_base,         5,   %s,     path_base,    none
    5152FIELD rawExp.exp_id,                     5,   %s,     Exp ID,       none
    5253
    5354# the last two are used as arguments elsewhere, thus needed in the list, even if not displayed
     55# FIELD camRun.reduction,                        5,   %s,     reduction
     56# FIELD camProcessedExp.bg_mean_stdev,           5,   %.2f,     <backgnd>
  • trunk/ippMonitor/def/camProcessedExp_NoImages.d

    r18313 r18970  
    3131FIELD chipRun.chip_id,                   5,   %d,     chip ID
    3232FIELD camRun.cam_id,                     5,   %d,     cam ID,       value,       chipProcessedExp.php,    ARG1
     33FIELD camRun.state,                      5,   %s,     state
    3334FIELD rawExp.telescope,                 10,   %s,     Telescope
    3435FIELD rawExp.camera,                    10,   %s,     Camera
    3536FIELD rawExp.dateobs,                   19,   %T,     Date/Time
    36 FIELD rawExp.filter,                    10,   %s,     FILTER
    3737FIELD rawExp.ra,                         8,   %10.6f, RA,           op=OP1     
    3838FIELD rawExp.decl,                       8,   %10.6f, DEC,          op=OP2
    3939FIELD rawExp.object,                    10,   %s,     Object
     40FIELD rawExp.filter,                    10,   %s,     FILTER
    4041FIELD rawExp.exp_time,                   5,   %.2f,     exp_time   
    4142FIELD rawExp.airmass,                    5,   %.4f,     airmass     
    42 FIELD camRun.reduction,                  5,   %s,     reduction
    4343FIELD camProcessedExp.bg,                5,   %.2f,     backgnd
    4444FIELD camProcessedExp.bg_stdev,          5,   %.2f,     stdev   
    45 FIELD camProcessedExp.bg_mean_stdev,     5,   %.2f,     <backgnd>
    4645FIELD camProcessedExp.n_stars,           5,   %d,     Nstars
    4746FIELD camProcessedExp.n_astrom,          5,   %d,     Nastrom
    4847FIELD camProcessedExp.sigma_ra,          5,   %f,     sigma ra
    4948FIELD camProcessedExp.fwhm_major,        5,   %f,     FHWM (major)
     49FIELD rawExp.comment,                   65, %s,     Comment
     50
    5051FIELD camProcessedExp.path_base,         5,   %s,     path_base,    none
    5152FIELD rawExp.exp_id,                     5,   %s,     Exp ID,       none
     53
     54# FIELD camProcessedExp.bg_mean_stdev,           5,   %.2f,     <backgnd>
  • trunk/ippMonitor/def/camProcessedExp_failure.d

    r18340 r18970  
    11TABLE camRun, camProcessedExp, chipRun, rawExp
    2 TITLE Camera Processed (No Images)
     2TITLE Camera Failed Exposures
    33FILE  camProcessedExp_failure.php
    44MENU  ipp.science.dat
     
    3131FIELD chipRun.chip_id,                   5,   %d,     chip ID,      value,       chipProcessedExp.php,        ARG1
    3232FIELD camRun.cam_id,                     5,   %d,     cam ID,       value,       camProcessedExp_failure.php, ARG2
     33FIELD camRun.state,                      5,   %s,     state
    3334FIELD rawExp.telescope,                 10,   %s,     Telescope
    3435FIELD rawExp.camera,                    10,   %s,     Camera
    3536FIELD rawExp.dateobs,                   19,   %T,     Date/Time
    36 FIELD rawExp.filter,                    10,   %s,     FILTER
    3737FIELD rawExp.ra,                         8,   %10.6f, RA,           op=OP1     
    3838FIELD rawExp.decl,                       8,   %10.6f, DEC,          op=OP2
    3939FIELD rawExp.object,                    10,   %s,     Object
     40FIELD rawExp.filter,                    10,   %s,     FILTER
    4041FIELD rawExp.exp_time,                   5,   %.2f,     exp_time   
    4142FIELD rawExp.airmass,                    5,   %.4f,     airmass     
    42 FIELD camRun.reduction,                  5,   %s,     reduction
    4343FIELD camProcessedExp.bg,                5,   %.2f,     backgnd
    4444FIELD camProcessedExp.bg_stdev,          5,   %.2f,     stdev   
    45 FIELD camProcessedExp.bg_mean_stdev,     5,   %.2f,     <backgnd>
    4645FIELD camProcessedExp.n_stars,           5,   %d,     Nstars
    4746FIELD camProcessedExp.n_astrom,          5,   %d,     Nastrom
    4847FIELD camProcessedExp.sigma_ra,          5,   %f,     sigma ra
    4948FIELD camProcessedExp.fwhm_major,        5,   %f,     FHWM (major)
     49FIELD rawExp.comment,                   65, %s,     Comment
     50
    5051FIELD camProcessedExp.path_base,         5,   %s,     path_base,    none
    5152FIELD rawExp.exp_id,                     5,   %s,     Exp ID,       none
    5253
     54# FIELD camRun.reduction,                        5,   %s,     reduction
     55# FIELD camProcessedExp.bg_mean_stdev,           5,   %.2f,     <backgnd>
     56
    5357TAIL PHP insert_log ('LOG.IMFILE');
  • trunk/ippMonitor/def/camStageExp.d

    r18340 r18970  
    11TABLE camRun, chipRun, rawExp
    2 TITLE Camera Pending
    3 FILE  camPendingExp.php
     2TITLE Camera Stage Exposures
     3FILE  camStageExp.php
    44MENU  ipp.science.dat
    55
     
    1212OP   OP2  $rawExp.decl * 57.295783
    1313
     14
    1415#     field                     size  format  name          show   link to                  extras
    15 FIELD chipRun.exp_id,            5,   %s,     exposure ID,  value, chipProcessedImfile.php, ARG1
     16FIELD chipRun.exp_id,            5,   %s,     Exp ID,       value, chipProcessedImfile.php, ARG1
    1617FIELD rawExp.exp_name,           5,   %s,     Exp Name,     value, rawImfile.php,  ARG1
    1718FIELD chipRun.chip_id,           5,   %s,     chip ID,      value, chipProcessedExp.php,    ARG1
     
    2930FIELD rawExp.bg,                 5,   %.2f,   backgnd
    3031FIELD rawExp.bg_stdev,           5,   %.2f,   stdev   
    31 FIELD rawExp.bg_mean_stdev,      5,   %.2f,   <backgnd>
    32 FIELD rawExp.sat_pixel_frac,     5,   %.3f,   f(sat pixels)
     32FIELD rawExp.comment,           65,   %s,     Comment
     33
     34# FIELD rawExp.bg_mean_stdev,    5,   %.2f,   <backgnd>
  • trunk/ippMonitor/def/chipPendingExp.d

    r18722 r18970  
    2121FIELD rawExp.camera,            10, %s,     Camera
    2222FIELD rawExp.dateobs,           19, %T,     Date/Time
    23 FIELD rawExp.ra,                 5, %10.6f, RA,          op=OP1   
    24 FIELD rawExp.decl,               5, %10.6f, DEC,         op=OP2
     23FIELD rawExp.ra,                 8, %10.6f, RA,          op=OP1   
     24FIELD rawExp.decl,               8, %10.6f, DEC,         op=OP2
    2525FIELD rawExp.object,             8, %s,     Object
    2626FIELD rawExp.filter,            10, %s,     FILTER
  • trunk/ippMonitor/def/chipPendingImfile.d

    r18722 r18970  
    2121FIELD chipRun.exp_id,            5, %d,     Exp ID
    2222FIELD rawExp.exp_name,           5, %s,     Exp Name,    value,  rawImfile.php,  ARG1
    23 FIELD rawImfile.class_id,        5, %s,     Class ID
     23FIELD rawImfile.class_id,        8, %s,     Class ID
    2424FIELD chipRun.chip_id,           7, %d,     chip ID
    2525FIELD chipRun.state,             7, %s,     state
     
    2727FIELD rawExp.camera,            10, %s,     Camera
    2828FIELD rawExp.dateobs,           19, %T,     Date/Time
    29 FIELD rawExp.ra,                 5, %10.6f, RA,          op=OP1   
    30 FIELD rawExp.decl,               5, %10.6f, DEC,         op=OP2
     29FIELD rawExp.ra,                 8, %10.6f, RA,          op=OP1   
     30FIELD rawExp.decl,               8, %10.6f, DEC,         op=OP2
    3131FIELD rawExp.object,             8, %s,     Object
    3232FIELD rawExp.filter,            10, %s,     FILTER
     
    3535FIELD rawExp.bg,                 5, %.2f,   backgnd
    3636FIELD rawExp.bg_stdev,           5, %.2f,   stdev   
     37FIELD *,                         5, %d,     Nstars,      value=0
     38FIELD *,                         5, %.2f,   FHWM,        value=0.0
    3739FIELD rawExp.comment,           65, %s,     Comment
  • trunk/ippMonitor/def/chipProcessedImfile.d

    r18373 r18970  
    2323FIELD chipRun.exp_id,                     5, %d,     Exp ID,      value,  rawImfile.php,           ARG1
    2424FIELD rawExp.exp_name,                    5, %s,     Exp Name,    value,  chipProcessedImfile.php, ARG2
    25 FIELD chipProcessedImfile.class_id,       5, %s,     Class ID
     25FIELD chipProcessedImfile.class_id,       8, %s,     Class ID
    2626FIELD chipRun.chip_id,                    7, %d,     chip ID
    2727FIELD chipRun.state,                      7, %s,     state
     
    3333FIELD rawExp.object,                      8, %s,     Object
    3434FIELD rawExp.filter,                     10, %s,     FILTER
    35 FIELD rawExp.exp_time,                    5, %.2f,     exp_time   
    36 FIELD rawExp.airmass,                     5, %.4f,     airmass     
    37 FIELD chipProcessedImfile.bg,             5, %.2f,     backgnd
    38 FIELD chipProcessedImfile.bg_stdev,       5, %.2f,     stdev   
     35FIELD rawExp.exp_time,                    5, %.2f,   exp_time   
     36FIELD rawExp.airmass,                     5, %.4f,   airmass     
     37FIELD chipProcessedImfile.bg,             5, %.2f,   backgnd
     38FIELD chipProcessedImfile.bg_stdev,       5, %.2f,   stdev   
    3939FIELD chipProcessedImfile.n_stars,        5, %d,     Nstars
    40 FIELD chipProcessedImfile.fwhm_major,     5, %f,     FHWM
     40FIELD chipProcessedImfile.fwhm_major,     5, %.2f,   FHWM
    4141FIELD chipProcessedImfile.path_base,      5, %s,     path_base, none
     42FIELD rawExp.comment,                    65, %s,     Comment
    4243
    4344TAIL PHP insert_log ('LOG.IMFILE');
  • trunk/ippMonitor/def/chipProcessedImfile_failure.d

    r18373 r18970  
    2424FIELD chipRun.exp_id,                     5, %d,     Exp ID,      value,  rawImfile.php,           ARG1
    2525FIELD rawExp.exp_name,                    5, %s,     Exp Name,    value,  chipProcessedImfile_failure.php, ARG2
    26 FIELD chipProcessedImfile.class_id,       5, %s,     Class ID
     26FIELD chipProcessedImfile.class_id,       8, %s,     Class ID
    2727FIELD chipRun.chip_id,                    7, %d,     chip ID
    2828FIELD chipRun.state,                      7, %s,     state
     
    3939FIELD chipProcessedImfile.bg_stdev,       5, %.2f,   stdev   
    4040FIELD chipProcessedImfile.n_stars,        5, %d,     Nstars
    41 FIELD chipProcessedImfile.fwhm_major,     5, %f,     FHWM
     41FIELD chipProcessedImfile.fwhm_major,     5, %.2f,   FHWM
    4242FIELD chipProcessedImfile.path_base,      5, %s,     path_base, none
     43FIELD rawExp.comment,                    65, %s,     Comment
    4344
    4445TAIL PHP insert_log ('LOG.IMFILE');
  • trunk/ippMonitor/raw/ipp.php

    r18373 r18970  
    310310  // add a sort key?
    311311  $sortKey = "";
    312   if ($_SERVER[REQUEST_METHOD] == 'GET') {
    313     $sortKey = "&sort=" . $_GET['sort'];
    314   } else {
    315     $sortKey = "&sort=" . $_POST['sort'];
    316   }
    317   if ($_SERVER[REQUEST_METHOD] == 'GET') {
    318     $sortKey = "&rsort=" . $_GET['rsort'];
    319   } else {
    320     $sortKey = "&rsort=" . $_POST['rsort'];
     312  // try sort forward
     313  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     314    $sortVal = $_GET['sort'];
     315  } else {
     316    $sortVal = $_POST['sort'];
     317  }
     318  if ($sortVal != "") {
     319    $sortKey = "&sort=" . $sortVal;
     320  }
     321  // try sort reverse
     322  if ($sortKey == "") {
     323    if ($_SERVER[REQUEST_METHOD] == 'GET') {
     324      $sortKey = $_GET['rsort'];
     325    } else {
     326      $sortKey = $_POST['rsort'];
     327    }
     328    if ($sortVal != "") {
     329      $sortKey = "&rsort=" . $sortVal;
     330    }
    321331  }
    322332
     
    502512
    503513  if ($_SERVER[REQUEST_METHOD] == 'GET') {
    504     $up   = $_GET['sort'];
    505     $down = $_GET['rsort'];
    506   } else {
    507     $up   = $_POST['sort'];
    508     $down = $_POST['rsort'];
     514    $up   = $_GET['rsort'];
     515    $down = $_GET['sort'];
     516    $from = $_GET['from'];
     517  } else {
     518    $up   = $_POST['rsort'];
     519    $down = $_POST['sort'];
     520    $from = $_POST['from'];
     521  }
     522
     523  // down button link
     524  $link = "$baselink" . "&sort=$value";
     525  if ($from != "") {
     526    $link = $link . "&from=$from";
     527  }
     528  if ($down == $value) {
     529    echo "<a href=\"$link\"><img src=\"down_sel.png\"></a>";
     530  } else {
     531    echo "<a href=\"$link\"><img src=\"down.png\"></a>";
    509532  }
    510533
    511534  // up button link
    512   $link = "$baselink" . "&sort=$value";
     535  $link = "$baselink" . "&rsort=$value";
     536  if ($from != "") {
     537    $link = $link . "&from=$from";
     538  }
    513539  if ($up == $value) {
    514540    echo "<a href=\"$link\"><img src=\"up_sel.png\"></a>";
    515541  } else {
    516542    echo "<a href=\"$link\"><img src=\"up.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_sel.png\"></a>";
    523   } else {
    524     echo "<a href=\"$link\"><img src=\"down.png\"></a>";
    525543  }
    526544
Note: See TracChangeset for help on using the changeset viewer.