IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 10, 2007, 3:18:44 PM (19 years ago)
Author:
eugene
Message:

applying the update to Stats.pm using dtype and new methods

File:
1 edited

Legend:

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

    r14048 r14115  
    7373   [   
    7474       #          KEYWORD                 STATISTIC          CHIPTOOL FLAG
    75        { name => "bg",             type => "mean",  flag => "-bg" },
    76        { name => "bg",             type => "stdev", flag => "-bg_mean_stdev" },
    77        { name => "bg_stdev",       type => "rms",   flag => "-bg_stdev" },
     75       { name => "bg",             type => "mean",  flag => "-bg",             dtype => "float" },
     76       { name => "bg",             type => "stdev", flag => "-bg_mean_stdev",  dtype => "float" },
     77       { name => "bg_stdev",       type => "rms",   flag => "-bg_stdev",       dtype => "float" },
    7878       # { name => "bg_mean_stdev",  type => "rms",   flag => "-bg_mean_stdev" },
    7979   ];
     80my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
    8081
    8182# Look for programs we need
     
    147148        &my_die("Unable to parse metadata config doc", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR);
    148149
    149     my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
    150150    $stats->parse($metadata)  or
    151151        &my_die("Unable to find all values in statistics output.", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR);
     
    159159$command .= " -recip $recipe";
    160160$command .= " -dbname $dbname" if defined $dbname;
    161 
    162 # add in the elements from the selected stats above
    163 foreach my $entry (@$STATS) {
    164     my $value = $entry->{value};
    165     my $flag = $entry->{flag};
    166     $command .= " $flag $value";
    167 }
     161$command .= $stats->cmdflags();
    168162
    169163# Add the resultant into the database
Note: See TracChangeset for help on using the changeset viewer.