IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 11, 2010, 3:12:57 PM (16 years ago)
Author:
rhenders
Message:

added rate-of-processing option; added option to include cleanup in plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarplot.pl

    r29320 r29375  
    2222my $histogram = undef;
    2323my $timeSeries = undef;
     24my $rate = undef;
     25my $showCleanup = undef;
    2426my $nebulous = undef;
    2527my $savingToFile = undef;
     
    3335        "begin|b=s" => \$begin,
    3436        "end|e=s" => \$end,
    35         "day|d=s" => \$day,
     37        "day|y=s" => \$day,
    3638        "output|o=s" => \$path,
    3739        "histogram|h" => \$histogram,
    3840        "nebulous|n" => \$nebulous,
     41        "cleanup|c" => \$showCleanup,
     42        "rate|r" => \$rate,
    3943        "timeseries|t" => \$timeSeries,
    4044        "verbose|v" => \$verbose,
     
    5357if (!$timeSeries) {
    5458    print "* OPTIONAL: plot timeseries                 -t                          (default=on)\n";}
     59if (!$rate) {
     60    print "* OPTIONAL: plot timeseries of rate         -r                          (default=off)\n";}
     61if (!$showCleanup) {
     62    $showCleanup = 0;
     63    print "* OPTIONAL: include cleanup in timeseries   -c                          (default=$showCleanup)\n";}
    5564if (!$log) {
    5665    $log = 0;
     
    7079    print "* OPTIONAL: choose an end time              -e <datetime>               (default=now)\n";}
    7180if (!$day) {
    72     print "* OPTIONAL: choose a single day to plot     -d <date>                   (default=today)\n";}
     81    print "* OPTIONAL: choose a single day to plot     -y <date>                   (default=today)\n";}
    7382if (!$path) {
    7483    print "* OPTIONAL: choose an output location       -o <path>                   (default=none)\n";
     
    97106# sort out times
    98107if($day) {
     108
     109    # day plots should run from about 6:30am until midnight
     110    $begin =  "$day 06:35";
    99111    $end = "$day 23:59";
    100     $begin =  "$day 06:35";
    101112}
    102113else {
     
    111122my $diskUsage = 1; # TODO
    112123
    113 if (!$nebulous && $timeSeries) {$plotter->createTimeSeries($label, $stage, $begin, $end, $log);}
     124if ($rate) {
     125
     126    if (!$interval) {$interval = "1 HOUR";}
     127    $plotter->createRateTimeSeries($label, $stage, $begin, $end, $interval, $log);
     128    exit;
     129}
     130if (!$nebulous && $timeSeries) {$plotter->createTimeSeries($label, $stage, $begin, $end, $log, $showCleanup);}
    114131if ($histogram) {$plotter->createHistogram($label, $begin, $end);}
    115132if ($nebulous && $timeSeries) {$plotter->plotStorageTimeSeries($begin, $end);}
Note: See TracChangeset for help on using the changeset viewer.