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_norm_apply.pl

    r14009 r14115  
    6868   [   
    6969       #          PPSTATS KEYWORD         STATISTIC          CHIPTOOL FLAG
    70        { name => "ROBUST_MEDIAN",  type => "mean",  flag => "-bg" },
    71        { name => "ROBUST_MEDIAN",  type => "stdev", flag => "-bg_mean_stdev" },
    72        { name => "ROBUST_STDEV",   type => "rms",   flag => "-bg_stdev" },
     70       { name => "ROBUST_MEDIAN",  type => "mean",  flag => "-bg",            dtype => "float" },
     71       { name => "ROBUST_MEDIAN",  type => "stdev", flag => "-bg_mean_stdev", dtype => "float" },
     72       { name => "ROBUST_STDEV",   type => "rms",   flag => "-bg_stdev",      dtype => "float" },
    7373   ];
     74my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
    7475
    7576# Look for programs we need
     
    127128
    128129    # extract the stats from the metadata
    129     my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
    130130    unless ($stats->parse($metadata)) {
    131131        &my_die("Unable to find all values in statistics output.", $det_id, $iter, $class_id, $PS_EXIT_PROG_ERROR);
     
    141141$command .= " -path_base $outputRoot";
    142142$command .= " -dbname $dbname" if defined $dbname;
    143 
    144 # add in the elements from the selected stats above
    145 foreach my $entry (@$STATS) {
    146     my $value = $entry->{value};
    147     my $flag = $entry->{flag};
    148     $command .= " $flag $value";
    149 }
     143$command .= $stats->cmdflags();
    150144
    151145# Add the processed file to the database
Note: See TracChangeset for help on using the changeset viewer.