IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17811


Ignore:
Timestamp:
May 24, 2008, 1:24:15 PM (18 years ago)
Author:
Paul Price
Message:

Fixing log messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtraction.c

    r17783 r17811  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.91 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2008-05-24 00:40:16 $
     6 *  @version $Revision: 1.92 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2008-05-24 23:24:15 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    493493
    494494
    495 int pmSubtractionRejectStamps(float *rms, int *num, pmSubtractionStampList *stamps,
     495int pmSubtractionRejectStamps(float *rmsPtr, int *numPtr, pmSubtractionStampList *stamps,
    496496                              const psVector *deviations, psImage *subMask, float sigmaRej,
    497497                              int footprint)
     
    514514    }
    515515
    516     totalSquareDev = sqrt(totalSquareDev / (double)numStamps); // Convert to RMS
    517 
    518     if (rms) {
    519         *rms = totalSquareDev;
    520     }
    521     if (num) {
    522         *num = numStamps;
     516    float rms = sqrt(totalSquareDev / (double)numStamps); // Convert to RMS
     517
     518    if (rmsPtr) {
     519        *rmsPtr = rms;
     520    }
     521    if (numPtr) {
     522        *numPtr = numStamps;
    523523    }
    524524
     
    531531        // User just wanted to calculate and record the RMS for posterity
    532532        psLogMsg("psModules.imcombine", PS_LOG_INFO, "RMS deviation from %d stamps: %lf",
    533                  numStamps, totalSquareDev);
     533                 numStamps, rms);
    534534        return 0;
    535535    }
    536536
    537     float limit = sigmaRej * totalSquareDev; // Limit on maximum deviation
     537    float limit = sigmaRej * rms; // Limit on maximum deviation
    538538    psTrace("psModules.imcombine", 1, "Deviation limit: %f\n", limit);
    539539
     
    586586        psLogMsg("psModules.imcombine", PS_LOG_INFO,
    587587                 "%d good stamps; %d rejected.\nRMS deviation: %f --> %f\n",
    588                  numGood, numRejected, sqrt(totalSquareDev / numStamps),
     588                 numGood, numRejected, rms,
    589589                 sqrt(newSquareDev / (double)numGood));
    590590    } else {
    591591        psLogMsg("psModules.imcombine", PS_LOG_INFO,
    592592                 "%d good stamps; 0 rejected.\nRMS deviation: %f\n",
    593                  numGood, sqrt(totalSquareDev / numStamps));
     593                 numGood, rms);
    594594    }
    595595
Note: See TracChangeset for help on using the changeset viewer.