IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2007, 9:28:41 AM (19 years ago)
Author:
Paul Price
Message:

For whatever reason, the detrend rejection limits that were coming back were 'zero but true'. Changed the checks to check that the limit is greater than zero, not if the value evaluates to true.

File:
1 edited

Legend:

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

    r13618 r13639  
    208208    last if $no_op;
    209209
    210     if ($reject_imfile_mean) {
     210    if ($reject_imfile_mean > 0) {
    211211        if (abs($mean) > $reject_imfile_mean * $stdev) {
    212212            print $logFile "Rejecting exposure based on bad imfile mean for $name: ";
     
    219219        print $logFile "No rejection on imfile mean for $name\n";
    220220    }
    221     if ($reject_imfile_stdev) {
     221    if ($reject_imfile_stdev > 0) {
    222222        if ($stdev > $reject_imfile_stdev) {
    223223            print $logFile "Rejecting exposure based on bad imfile stdev for $name: ";
     
    231231        print $logFile "No rejection on imfile stdev for $name\n";
    232232    }
    233     if ($reject_imfile_meanstdev) {
     233    if ($reject_imfile_meanstdev > 0) {
    234234        if ($meanStdevs[$i] > $reject_imfile_meanstdev) {
    235235            print $logFile "Rejecting exposure based on bad imfile mean stdev for $name: ";
     
    242242        print $logFile "No rejection on imfile mean stdev for $name\n";
    243243    }
    244     if ($reject_imfile_sn) {
     244    if ($reject_imfile_sn > 0) {
    245245        if ($mean < $stdev * $reject_imfile_sn) {
    246246            print $logFile "Rejecting exposure based on bad imfile S/N for $name: ";
     
    253253        print $logFile "No rejection on imfile S/N for $name\n";
    254254    }
    255     if ($reject_imfile_bin_sn) {
     255    if ($reject_imfile_bin_sn > 0) {
    256256        if ($mean < $binStdev * $reject_imfile_bin_sn) {
    257257            print $logFile "Rejecting exposure based on bad imfile binned S/N for $name: ";
     
    290290    print $logFile "Exposure mean $mean, stdev $stdev, mean stdev $meanStdev, exp s/n: $exp_sn\n";
    291291
    292     if ($reject_exp_mean) {
     292    if ($reject_exp_mean > 0) {
    293293        if (abs($mean) > $reject_exp_mean * $stdev) {
    294294            print $logFile "Rejecting exposure based on bad mean: ";
     
    302302    }
    303303    # reject if the exposure ensemble stdev is deviant
    304     if ($reject_exp_stdev) {
     304    if ($reject_exp_stdev > 0) {
    305305        if ($stdev > $reject_exp_stdev) {
    306306            print $logFile "Rejecting exposure based on bad stdev: ";
     
    314314    }
    315315    # reject if the exposure ensemble mean stdev is deviant
    316     if ($reject_exp_meanstdev) {
     316    if ($reject_exp_meanstdev > 0) {
    317317        if ($meanStdev > $reject_exp_meanstdev) {
    318318            print $logFile "Rejecting exposure based on bad mean stdev: ";
     
    326326    }
    327327    # reject if the signal-to-noise is insufficient
    328     if ($reject_exp_sn) {
     328    if ($reject_exp_sn > 0) {
    329329        if (abs($mean) < abs($stdev * $reject_exp_sn)) {
    330330            print $logFile "Rejecting exposure based on poor S/N: \n";
     
    338338    }
    339339    # reject if the signal-to-noise is insufficient
    340     if ($reject_exp_bin_sn) {
     340    if ($reject_exp_bin_sn > 0) {
    341341        if (abs($mean) < abs($binStdev * $reject_exp_bin_sn)) {
    342342            print $logFile "Rejecting exposure based on poor binned S/N: \n";
Note: See TracChangeset for help on using the changeset viewer.