IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13987


Ignore:
Timestamp:
Jun 26, 2007, 4:59:37 PM (19 years ago)
Author:
eugene
Message:

adding MANA plots of the curves, fixed parsing error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_darkstats.pl

    r13986 r13987  
    77use Pod::Usage qw( pod2usage );
    88use IPC::Cmd 0.36 qw( can_run run );
     9use IO::Handle;
    910
    1011use PS::IPP::Metadata::List qw( parse_md_list );
     
    7879    my $statsName = "$rootName.$class_id.stats";
    7980
    80     # print STDERR "rootName: $rootName\n";
    81     # print STDERR "statsName: $statsName\n";
     81    # print STDERR "rootName: $rootName : $exp_time\n";
     82    print STDERR "statsName: $statsName : $exp_time\n";
    8283
    8384    my $statsFile;
     
    107108print STDERR "dumping stats\n";
    108109open (MANA, "|mana --norc");
     110MANA->autoflush;
    109111
    110112foreach my $component (@components) {
     
    133135    print MANA "echo\n";
    134136    print MANA "output stdout\n";
     137
     138    print MANA "applyfit X Yf\n";
     139    print MANA "lim X Y\n";
     140    print MANA "clear\n";
     141    print MANA "box\n";
     142    print MANA "plot -x 2 -pt 2 -sz 1.0 -c black X Y\n";
     143    print MANA "plot -x 2 -pt 7 -sz 1.0 -c red X Yf\n";
     144
     145    print STDERR "hit return to continue\n";
     146    $answer = <STDIN>;
    135147}
    136148
     
    152164        }
    153165
    154         if ($entry->{name} =~ /^(SAMPLE|ROBUST|FITTED|CLIPPED)_/) {
     166        if ($entry->{name} =~ /^(SAMPLE|ROBUST|FITTED|CLIPPED)/) {
    155167            # It's a statistic of some sort
    156168            if ($entry->{name} =~ /_STDEV$/) {
    157169                push @bg_stdev_data, $entry->{value};
    158170            } else {
    159                 push @bg_data, $entry->{value};
     171                push @bg_name,    $tag;
     172                push @bg_data,    $entry->{value};
     173                push @bg_exptime, $exp_time;
     174                # print STDERR "$tag $exp_time $entry->{value}\n";
    160175            }
    161             push @bg_name, $tag;
    162             push @bg_exptime, $exp_time;
    163176            if (!$componentsHash{$tag}) {
    164177                push @components, $tag;
Note: See TracChangeset for help on using the changeset viewer.