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

    r8763 r8983  
    111111        " -uri $output -recip $recipe"; # Command to run
    112112    $command .= ' -bg ' . $stats->bg_mean();
     113    if (defined($stats->bg_stdev())) {
    113114    $command .= ' -bg_stdev ' . $stats->bg_stdev();
     115    } else {
     116        # May be undefined if there is only a single imfile
     117        $command .= ' -bg_stdev 0';
     118    }
    114119    $command .= ' -bg_mean_stdev ' . $stats->bg_mean_stdev();
    115120    $command .= ' -pleasenormalize' if NORMALISE()->{$det_type};
Note: See TracChangeset for help on using the changeset viewer.