Changeset 14239 for trunk/ippScripts/scripts/diff_skycell.pl
- Timestamp:
- Jul 16, 2007, 2:23:28 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diff_skycell.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r13748 r14239 47 47 -exitval => 3, 48 48 ) unless defined $diff_id; 49 50 my $STATS = 51 [ 52 # PPSTATS KEYWORD STATISTIC DIFFTOOL FLAG 53 { name => "ROBUST_MEDIAN", type => "mean", flag => "-bg", dtype => "float" }, 54 { name => "ROBUST_STDEV", type => "rms", flag => "-bg_stdev", dtype => "float" }, 55 ]; 56 my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser 49 57 50 58 # Look for programs we need … … 141 149 142 150 # Perform subtraction 143 my $stats = PS::IPP::Metadata::Stats->new(); # Stats parser144 151 unless ($no_op) { 145 152 my $command = "$ppSub $input $template $outputRoot"; … … 171 178 } 172 179 173 # Add the processed file to the database174 my $bg = ($stats->bg_mean() or 'NAN');175 my $bg_stdev = ($stats->bg_stdev() or 'NAN');176 177 180 unless ($no_update) { 178 181 … … 180 183 { 181 184 my $command = "$difftool -adddiffskyfile -diff_id $diff_id -uri $outputName -path_base $outputRoot"; 182 $command .= " -bg $bg -bg_stdev $bg_stdev";185 $command .= $stats->cmdflags(); 183 186 $command .= " -dbname $dbname" if defined $dbname; 184 187
Note:
See TracChangeset
for help on using the changeset viewer.
