IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29862


Ignore:
Timestamp:
Nov 26, 2010, 3:21:47 PM (15 years ago)
Author:
rhenders
Message:

removed redundant 'log' option for rates plots; removed default 'from 6:35' for case when making metrics; improved args for 1st-derivs and days: more clear now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarplot.pl

    r29765 r29862  
    4545        "begin|b=s" => \$begin,
    4646        "end|e=s" => \$end,
    47         "day|y=s" => \$day,
     47        "day|d=s" => \$day,
    4848        "output|o=s" => \$path,
    4949        "histogram|h" => \$histogram,
     
    5151        "cleanup|c" => \$showCleanup,
    5252        "rate|r" => \$rate,
    53         "deriv|d" => \$deriv,
     53        "deriv|f" => \$deriv,
    5454        "analysis|a" => \$analysis,
    5555        "timeseries|t" => \$timeSeries,
     
    8080if (!$deriv) {
    8181    $deriv = 0;
    82     print "* OPTIONAL: plot first derivative           -d                          (default=$deriv)\n";}
     82    print "* OPTIONAL: plot first derivative           -f                          (default=$deriv)\n";}
    8383if (!$analysis) {
    8484    $analysis = 0;
     
    106106    print "* OPTIONAL: choose an end time              -e <datetime>               (default=now)\n";}
    107107if (!$day) {
    108     print "* OPTIONAL: choose a single day to plot     -y <date>                   (default=today)\n";}
     108    print "* OPTIONAL: choose a single day to plot     -d <date>                   (default=today)\n";}
    109109if (!$path) {
    110110    print "* OPTIONAL: choose an output location       -o <path>                   (default=none)\n";
     
    137137if($day) {
    138138
    139     # day plots should run from about 6:30am until midnight
    140     $begin =  "$day 06:35";
    141     $end = "$day 23:59";
    142         print "JKJKJK '$begin' '$end' \n";
     139    if ($magicMask) {
    143140
     141        $begin =  $day;
     142        $end = $day;
     143    }
     144    else {
     145
     146        # day plots should run from about 6:30am until midnight
     147        $begin = "$day 06:35";
     148        $end = "$day 23:59";
     149    }
    144150}
    145151else {
     
    152158    }
    153159}
    154 my $diskUsage = 1; # TODO
     160if ($rate) {
    155161
    156 if ($rate) {
    157     $plotter->createRateTimeSeries($label, $stage, $begin, $end, $rateInterval, $log);
     162    $plotter->createRateTimeSeries($label, $stage, $begin, $end, $rateInterval);
    158163    exit;
    159164}
     
    165170   
    166171    if ($exposureId) {$plotter->plotMagicMaskFractionForThisExposure($exposureId);}
    167     else {$plotter->plotMagicMaskFractionHistogram($begin, $end);}
     172    else {$plotter->plotMagicMaskFraction($begin, $end);}
    168173
    169174}
Note: See TracChangeset for help on using the changeset viewer.