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/phase0imfile.pl

    r8954 r8983  
    103103        $command .= " " . VARIABLES->{$variable} . " " . ($stats->data($variable))->{mean};
    104104    }
    105    
     105
    106106    $command .= " " . P0TOOL_BG_MEAN() . " " . $stats->bg_mean();
    107     $command .= " " . P0TOOL_BG_STDEV() . " " . $stats->bg_stdev();
     107    if (defined($stats->bg_stdev())) {
     108        $command .= " " . P0TOOL_BG_STDEV() . " " . $stats->bg_stdev();
     109    } else {
     110        # Will not be defined if there is only a single imfile
     111        $command .= " " . P0TOOL_BG_STDEV() . " 0";
     112    }
    108113    $command .= " " . P0TOOL_BG_MEAN_STDEV() . " " . $stats->bg_mean_stdev();
    109114 
Note: See TracChangeset for help on using the changeset viewer.