IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 27, 2007, 8:30:27 AM (19 years ago)
Author:
eugene
Message:

PS::IPP:Metadata::Stats may result in 0, which should not be interpretted as NAN; if the value is NAN, the stats function returns NAN

File:
1 edited

Legend:

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

    r13946 r13989  
    134134}
    135135
    136 my $bg = ($stats->bg_mean() or 'NAN');
    137 my $bg_stdev = ($stats->bg_stdev() or 'NAN');
    138 my $bg_mean_stdev = ($stats->bg_mean_stdev() or 'NAN');
     136my $bg            = $stats->bg_mean();
     137my $bg_stdev      = $stats->bg_stdev();
     138my $bg_mean_stdev = $stats->bg_mean_stdev();
    139139
    140140# Add the resultant into the database
    141141unless ($no_update) {
    142     my $command = "$dettool -addstacked -det_id $det_id -iteration $iter -class_id $class_id" .
    143         " -uri $outputStack -recip $recipe"; # Command to run
     142    my $command = "$dettool -addstacked";
     143    $command .= " -det_id $det_id -iteration $iter";
     144    $command .= " -class_id $class_id";
     145    $command .= " -uri $outputStack";
     146    $command .= " -recip $recipe";
    144147    $command .= " -bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev";
    145148    $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.