IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 2, 2010, 3:09:56 PM (16 years ago)
Author:
rhenders
Message:

Added log plots for timeseries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarplot.pl

    r29057 r29114  
    2323my $nebulous = undef;
    2424my $savingToFile = undef;
     25my $log = undef;
    2526
    2627GetOptions (
     
    3637        "timeseries|t" => \$timeSeries,
    3738        "verbose|v" => \$verbose,
     39        "log|g" => \$log,
    3840        );
    39 
    4041
    4142print "\n*******************************************************************************\n";
     
    5051if (!$timeSeries) {
    5152    print "* OPTIONAL: plot timeseries                 -t                          (default=on)\n";}
     53if (!$log) {
     54    $log = 0;
     55    print "* OPTIONAL: use log plots                   -g                          (default=$log\n";}
    5256if (!$nebulous) {
    5357    print "* OPTIONAL: plot nebulous disk space        -n                          (default=off)\n";}
    5458if (!$label) {
    55     print "* OPTIONAL: choose a label                  -l <labellName>             (default='all_stdscience_labels')\n";}
     59    $label = "all_stdscience_labels";
     60    print "* OPTIONAL: choose a label                  -l <labellName>             (default=$label)\n";}
    5661if (!$stage) {
    5762    print "* OPTIONAL: choose a stage                  -s <chip|cam|warp|etc>      (default=none)\n";}
     
    6368    print "* OPTIONAL: choose an end time              -e <datetime>               (default=now)\n";}
    6469if (!$path) {
    65     print "* OPTIONAL: choose an output location       -o <path>                   (default=none)\n";}
     70    print "* OPTIONAL: choose an output location       -o <path>                   (default=none)\n";
     71}
    6672print "*\n*******************************************************************************\n";
    6773
     
    6975
    7076# default values
    71 if (!$label) {$label = "all_stdscience_labels";}
    7277if (!$nebulous && !$histogram && !$timeSeries) {$timeSeries = 1; $histogram = 0;}
    7378if (!$verbose) {$verbose = 0;}
     
    9297my $diskUsage = 1; # TODO
    9398
    94 if (!$nebulous && $timeSeries) {$czarplot->createTimeSeries($label, $stage, $begin, $end);}
     99if (!$nebulous && $timeSeries) {$czarplot->createTimeSeries($label, $stage, $begin, $end, !$log, $log);}
    95100if ($histogram) {$czarplot->createHistogram($label, $begin, $end);}
    96101if ($nebulous && $timeSeries) {$czarplot->plotStorageTimeSeries($begin, $end);}
Note: See TracChangeset for help on using the changeset viewer.