IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 26, 2006, 10:38:47 AM (20 years ago)
Author:
Paul Price
Message:

Changes so that it will work with ISP data, with only a single imfile. The main change is that bg_stdev is undef when there's a single imfile, so that we need to explicitly check for that case, and set it to zero, otherwise the binaries barf due to bad command-line arguments.

File:
1 edited

Legend:

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

    r8862 r8983  
    9999        "-class_id $class_id -recip $recipe -uri $outputImage"; # Command to run dettool
    100100    $command .= " -bg " . $stats->bg_mean();
    101     $command .= " -bg_stdev " . $stats->bg_stdev();
     101    if (defined($stats->bg_stdev())) {
     102        $command .= " -bg_stdev " . $stats->bg_stdev();
     103    } else {
     104        # May be undefined if there's only a single imfile
     105        $command .= " -bg_stdev 0";
     106    }
    102107    $command .= " -bg_mean_stdev " . $stats->bg_mean_stdev();
    103108
Note: See TracChangeset for help on using the changeset viewer.