IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30382


Ignore:
Timestamp:
Jan 26, 2011, 4:04:02 PM (15 years ago)
Author:
rhenders
Message:

changes function and variable names for clarity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/czartool_exposures.php

    r30380 r30382  
    6464
    6565    $chipDist = array(); getChipDist($db, $date, $surveyStr, &$chipDist);
    66     $dist2_hash = array(); getCamDist($db, $date, $surveyStr, &$dist2_hash);
    67     $dist3_hash = array(); getWarpDist($db, $date, $surveyStr, &$dist3_hash);
    68     $dist4_hash = array(); getStackDist($db, $date, $surveyStr, &$dist4_hash);
     66    $camDist = array(); getCamDist($db, $date, $surveyStr, &$camDist);
     67    $warpDist = array(); getWarpDist($db, $date, $surveyStr, &$warpDist);
     68    $stackDist = array(); getStackDist($db, $date, $surveyStr, &$stackDist);
    6969    $stack_hash = array(); getStackProduced($db, $date, $surveyStr, &$stack_hash);
    7070
     
    7575    $wsDiffDist = array();
    7676    $ww1DiffDist = array();
    77     getDist5($db, $date, $surveyStr, &$wsDiffDist, &$ww1DiffDist, $wsDiffProduced);
    78 
    79     $ww2DiffDist = array(); getDist6($db, $date, $surveyStr, &$ww2DiffDist);
    80     $ssDiffDist = array(); getDist7($db, $date, $surveyStr, &$ssDiffDist);
    81 
    82     $ww2DiffProduced = array(); getDiff2($db, $date, $surveyStr, &$ww2DiffProduced);
    83     $ssDiffProduced = array(); gets1d($db, $date, $surveyStr, &$ssDiffProduced);
     77    getWSAndWW1DiffDist($db, $date, $surveyStr, &$wsDiffDist, &$ww1DiffDist, $wsDiffProduced);
     78
     79    $ww2DiffDist = array(); getWW2DiffDist($db, $date, $surveyStr, &$ww2DiffDist);
     80    $ssDiffDist = array(); getSSDiffDist($db, $date, $surveyStr, &$ssDiffDist);
     81
     82    $ww2DiffProduced = array(); getWW2DiffProduced($db, $date, $surveyStr, &$ww2DiffProduced);
     83    $ssDiffProduced = array(); getSSDiffProduced($db, $date, $surveyStr, &$ssDiffProduced);
    8484
    8585    $class = "list";
     
    152152
    153153        // cam
    154         if (!$dist2_hash[$exp_id]) $camDistStr = "N";
    155         else $camDistStr = $dist2_hash[$exp_id];
     154        if (!$camDist[$exp_id]) $camDistStr = "N";
     155        else $camDistStr = $camDist[$exp_id];
    156156
    157157        // warp
    158         if (!$dist3_hash[$exp_id]) $warpDistStr = "N";
    159         else $warpDistStr = $dist3_hash[$exp_id];
     158        if (!$warpDist[$exp_id]) $warpDistStr = "N";
     159        else $warpDistStr = $warpDist[$exp_id];
    160160
    161161        // stack
    162         if (!$stack_hash[$exp_id] && !$dist4_hash[$exp_id]) $stackDistStr = "";
    163         else $stackDistStr = $stack_hash[$exp_id] . "/" . $dist4_hash[$exp_id];
     162        if (!$stack_hash[$exp_id] && !$stackDist[$exp_id]) $stackDistStr = "";
     163        else $stackDistStr = $stack_hash[$exp_id] . "/" . $stackDist[$exp_id];
    164164
    165165        // WS diff
     
    353353###########################################################################
    354354#
    355 # Gets count of TODO distributed
    356 #
    357 ###########################################################################
    358 function getDist5($db, $date, $surveyStr, $hash1, $hash2, $wsDiffProduced) {
     355# Gets count of WS and WW1 diffs distributed
     356#
     357###########################################################################
     358function getWSAndWW1DiffDist($db, $date, $surveyStr, $hash1, $hash2, $wsDiffProduced) {
    359359
    360360    $sql = "
     
    387387###########################################################################
    388388#
    389 # Gets count of TODO distributed
    390 #
    391 ###########################################################################
    392 function getDist6($db, $date, $surveyStr, $hash) {
     389# Gets count of WW2 diffs distributed
     390#
     391###########################################################################
     392function getWW2DiffDist($db, $date, $surveyStr, $hash) {
    393393
    394394    $sql = "
     
    417417###########################################################################
    418418#
    419 # Gets count of TODO distributed
    420 #
    421 ###########################################################################
    422 function getDist7($db, $date, $surveyStr, $hash) {
     419# Gets count of SS diffs distributed
     420#
     421###########################################################################
     422function getSSDiffDist($db, $date, $surveyStr, $hash) {
    423423
    424424    $sql = "
     
    448448###########################################################################
    449449#
    450 # Gets count of TODO distributed
    451 #
    452 ###########################################################################
    453 function getDiff2($db, $date, $surveyStr, $hash) {
     450# Gets count of WW2 diffs produced
     451#
     452###########################################################################
     453function getWW2DiffProduced($db, $date, $surveyStr, $hash) {
    454454
    455455    $sql = "
     
    478478###########################################################################
    479479#
    480 # Gets count of TODO distributed
    481 #
    482 ###########################################################################
    483 function gets1d($db, $date, $surveyStr, $hash) {
     480# Gets count of SS diffs produced
     481#
     482###########################################################################
     483function getSSDiffProduced($db, $date, $surveyStr, $hash) {
    484484
    485485    $sql = "
Note: See TracChangeset for help on using the changeset viewer.