Changeset 10382
- Timestamp:
- Dec 1, 2006, 12:05:51 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r10075 r10382 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-1 1-18 07:31:44$8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-12-01 22:05:51 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 217 217 PS_ASSERT_PTR_NON_NULL(recipe, emptyClump); 218 218 219 bool status = true; 220 float PSF_CLUMP_SN_LIM = psMetadataLookupF32 (&status, recipe, "PSF_CLUMP_SN_LIM"); 221 if (!status) { 222 PSF_CLUMP_SN_LIM = 0; 223 } 224 219 225 // find the sigmaX, sigmaY clump 220 226 { … … 236 242 237 243 // construct a sigma-plane image 238 // psImageAlloc does zero the data239 244 splane = psImageAlloc (SX_MAX/SCALE, SY_MAX/SCALE, PS_TYPE_F32); 240 for (int i = 0; i < splane->numRows; i++) 241 { 242 memset (splane->data.F32[i], 0, splane->numCols*sizeof(PS_TYPE_F32)); 243 } 245 psImageInit(splane, 0); // psImageAlloc doesn't zero the data 244 246 245 247 // place the sources in the sigma-plane image (ignore 0,0 values?) … … 251 253 } 252 254 if (tmpSrc->moments == NULL) { 255 continue; 256 } 257 258 if (tmpSrc->moments->SN < PSF_CLUMP_SN_LIM) { 253 259 continue; 254 260 }
Note:
See TracChangeset
for help on using the changeset viewer.
