IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20712


Ignore:
Timestamp:
Nov 12, 2008, 5:50:30 PM (17 years ago)
Author:
eugene
Message:

var_soft = var + soft_frac
nsigma_2 = var_soft * rej
(not the other way around)

File:
1 edited

Legend:

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

    r20497 r20712  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2008-11-01 02:59:33 $
     10 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2008-11-13 03:50:30 $
    1212 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
    1313 *
     
    353353                  float rej2 = PS_SQR(rej); // Rejection level squared
    354354                  for (int i = 0; i < num; i++) {
    355                       pixelVariances->data.F32[i] *= rej2;
     355                      // Systematic error contributes to the rejection level
     356                      pixelVariances->data.F32[i] += PS_SQR(sys * pixelData->data.F32[i]);
    356357#ifdef VARIANCE_FACTORS
    357358                      // Variance factor contributes to the rejection level
    358359                      pixelVariances->data.F32[i] *= varFactors->data.F32[pixelSources->data.U16[i]];
    359360#endif
    360                       // Systematic error contributes to the rejection level
    361                       pixelVariances->data.F32[i] += PS_SQR(sys * pixelData->data.F32[i]);
     361                      pixelVariances->data.F32[i] *= rej2;
    362362                  }
    363363              }
Note: See TracChangeset for help on using the changeset viewer.