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

    r13946 r13989  
    112112}
    113113
    114 my $bg = ($stats->bg_mean() or 'NAN');
    115 my $bg_stdev = ($stats->bg_stdev() or 'NAN');
    116 my $bg_mean_stdev = ($stats->bg_mean_stdev() or 'NAN');
     114my $bg            = $stats->bg_mean();
     115my $bg_stdev      = $stats->bg_stdev();
     116my $bg_mean_stdev = $stats->bg_mean_stdev();
    117117
    118118# Add the processed file to the database
    119119unless ($no_update) {
    120     my $command = "$dettool -addprocessedimfile -det_id $det_id -exp_tag $exp_tag " .
    121         "-class_id $class_id -recip $recipe -uri $outputImage -path_base $outputRoot"; # Command to run dettool
     120    my $command = "$dettool -addprocessedimfile";
     121    $command .= " -det_id $det_id";
     122    $command .= " -exp_tag $exp_tag";
     123    $command .= " -class_id $class_id";
     124    $command .= " -recip $recipe";
     125    $command .= " -uri $outputImage -path_base $outputRoot";
    122126    $command .= " -bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev";
    123127    $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.