IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 19, 2010, 6:50:13 PM (16 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/tools/czarplot.pl

    r28794 r28980  
    2121my $histogram = undef;
    2222my $timeSeries = undef;
     23my $nebulous = undef;
    2324my $savingToFile = undef;
    2425
     
    3233        "output|o=s" => \$path,
    3334        "histogram|h" => \$histogram,
     35        "nebulous|n" => \$nebulous,
    3436        "timeseries|t" => \$timeSeries,
    3537        "verbose|v" => \$verbose,
     
    4143if (!$timeSeries) {
    4244    print "* OPTIONAL: plot timeseries                 -t                          (default=on)\n";}
     45if (!$nebulous) {
     46    print "* OPTIONAL: plot nebulous disk space        -n                          (default=off)\n";}
    4347if (!$label) {
    44     print "* OPTIONAL: choose a label                  -l <labellName>             (default='all_labels')\n";}
     48    print "* OPTIONAL: choose a label                  -l <labellName>             (default='all_stdscience_labels')\n";}
    4549if (!$stage) {
    4650    print "* OPTIONAL: choose a stage                  -s <chip|cam|warp|etc>      (default=none)\n";}
     
    5761
    5862# default values
    59 if (!$label) {$label = "all_labels";}
    60 if (!$histogram && !$timeSeries) {$timeSeries = 1; $histogram = 1;}
     63if (!$label) {$label = "all_stdscience_labels";}
     64if (!$nebulous && !$histogram && !$timeSeries) {$timeSeries = 1; $histogram = 0;}
    6165if (!$verbose) {$verbose = 0;}
    6266if (!$save_temps) {$save_temps = 0;}
     
    6771$czarDb->setDateFormat("%Y%m%d-%H%i%s");
    6872
    69 my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png" : "X11", $path, $save_temps);
     73my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8" : "X11", $path, $save_temps);
    7074
    7175my @allStages = ("chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist");
     
    7882}
    7983
    80 if ($timeSeries) {$czarplot->createTimeSeries($label, $stage, $begin, $end);}
     84my $diskUsage = 1; # TODO
     85
     86if (!$nebulous && $timeSeries) {$czarplot->createTimeSeries($label, $stage, $begin, $end);}
    8187if ($histogram) {$czarplot->createHistogram($label, $begin, $end);}
     88if ($nebulous && $timeSeries) {$czarplot->plotStorageTimeSeries($begin, $end);}
     89elsif ($nebulous) {$czarplot->plotDiskUsageHistogram();}
    8290
Note: See TracChangeset for help on using the changeset viewer.