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

    r14048 r14115  
    7070   [   
    7171       #          PPSTATS KEYWORD         STATISTIC          CHIPTOOL FLAG
    72        { name => "ROBUST_MEDIAN",  type => "mean",  flag => "-bg" },
    73        { name => "ROBUST_MEDIAN",  type => "stdev", flag => "-bg_mean_stdev" },
    74        { name => "ROBUST_STDEV",   type => "rms",   flag => "-bg_stdev" },
     72       { name => "ROBUST_MEDIAN",  type => "mean",  flag => "-bg",            dtype => "float" },
     73       { name => "ROBUST_MEDIAN",  type => "stdev", flag => "-bg_mean_stdev", dtype => "float" },
     74       { name => "ROBUST_STDEV",   type => "rms",   flag => "-bg_stdev",      dtype => "float" },
    7575   ];
     76my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
    7677
    7778# 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    $stats->parse($metadata) or &my_die("Unable to find all values in statistics output.", $det_id, $exp_id, $class_id, $PS_EXIT_PROG_ERROR);
    131131}
     
    139139$command .= " -uri $outputImage -path_base $outputRoot";
    140140$command .= " -dbname $dbname" if defined $dbname;
    141 
    142 # add in the elements from the selected stats above
    143 foreach my $entry (@$STATS) {
    144     my $value = $entry->{value};
    145     my $flag = $entry->{flag};
    146     $command .= " $flag $value";
    147 }
     141$command .= $stats->cmdflags();
    148142
    149143# Add the processed file to the database
Note: See TracChangeset for help on using the changeset viewer.