Changeset 20712 for trunk/psModules/src/imcombine/pmStack.c
- Timestamp:
- Nov 12, 2008, 5:50:30 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmStack.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmStack.c
r20497 r20712 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.4 4$ $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 $ 12 12 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii 13 13 * … … 353 353 float rej2 = PS_SQR(rej); // Rejection level squared 354 354 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]); 356 357 #ifdef VARIANCE_FACTORS 357 358 // Variance factor contributes to the rejection level 358 359 pixelVariances->data.F32[i] *= varFactors->data.F32[pixelSources->data.U16[i]]; 359 360 #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; 362 362 } 363 363 }
Note:
See TracChangeset
for help on using the changeset viewer.
