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

    r8763 r8983  
    120120        "-b2_uri $bin2Name"; # Command to run dettool
    121121    $command .= " -bg " . $stats->bg_mean();
    122     $command .= " -bg_stdev " . $stats->bg_stdev();
     122    if (defined($stats->bg_stdev())) {
     123        $command .= " -bg_stdev " . $stats->bg_stdev();
     124    } else {
     125        # May be undefined if there is only a single imfile
     126        $command .= ' -bg_stdev 0';
     127    }
    123128    $command .= " -bg_mean_stdev " . $stats->bg_mean_stdev();
    124129
Note: See TracChangeset for help on using the changeset viewer.