- Timestamp:
- Apr 10, 2006, 10:21:36 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/objects/pmSourceFitSet.c
r6751 r6825 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.1.2. 3$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-04- 01 02:47:20$5 * @version $Revision: 1.1.2.4 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-04-10 20:21:36 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 182 182 psS32 nPix = source->pixels->numRows * source->pixels->numCols; 183 183 184 // local sky variance 185 psF32 dSky = source->moments->dSky; 186 184 187 // construct the coordinate and value entries 185 188 psArray *x = psArrayAlloc(nPix); … … 206 209 y->data.F32[nPix] = source->pixels->data.F32[i][j]; 207 210 // psMinimizeLMChi2 takes wt = 1/dY^2 208 yErr->data.F32[nPix] = 1.0 / source->weight->data.F32[i][j]; 211 if (PM_PSF_POISSON_WEIGHTS) { 212 yErr->data.F32[nPix] = 1.0 / source->weight->data.F32[i][j]; 213 } else { 214 yErr->data.F32[nPix] = 1.0 / dSky; 215 } 209 216 nPix++; 210 217 }
Note:
See TracChangeset
for help on using the changeset viewer.
