IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 1, 2006, 1:12:34 PM (19 years ago)
Author:
Paul Price
Message:

Adding some checking.

File:
1 edited

Legend:

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

    r9696 r10398  
    120120    }
    121121   
    122     push @command, P0TOOL_BG_MEAN(), $stats->bg_mean(), P0TOOL_BG_STDEV();
     122    push @command, P0TOOL_BG_MEAN();
     123    if (defined $stats->bg_mean()) {
     124        push @command, $stats->bg_mean();
     125    } else {
     126        push @command, "NAN";
     127    }
     128    push @command, P0TOOL_BG_STDEV();
    123129    if (defined($stats->bg_stdev())) {
    124130        push @command, $stats->bg_stdev();
     
    127133        push @command, 0;
    128134    }
    129     push @command,  P0TOOL_BG_MEAN_STDEV(), $stats->bg_mean_stdev();
     135    push @command,  P0TOOL_BG_MEAN_STDEV();
     136    if (defined $stats->bg_mean_stdev()) {
     137        push @command, $stats->bg_mean_stdev();
     138    } else {
     139        push @command, "NAN";
     140    }
    130141 
    131142    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.