Changeset 31452 for trunk/psphot/src/psphotFitSourcesLinearStack.c
- Timestamp:
- May 5, 2011, 11:09:38 AM (15 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotFitSourcesLinearStack.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20110404/psphot (added) merged: 31313-31314,31328,31337,31362,31364,31381,31384,31437,31444
- Property svn:mergeinfo changed
-
trunk/psphot/src/psphotFitSourcesLinearStack.c
r31154 r31452 69 69 if (!pmSourceCacheModel (source, maskVal)) continue; 70 70 } 71 72 // check the integral of the model : is it large enough? 73 float modelSum = 0.0; 74 for (int iy = 0; iy < source->modelFlux->numRows; iy++) { 75 for (int ix = 0; ix < source->modelFlux->numCols; ix++) { 76 modelSum += source->modelFlux->data.F32[iy][ix]; 77 } 78 } 79 if (modelSum < 0.5) continue; // skip sources with no model constraint (somewhat arbitrary limit) 80 if (modelSum < 0.8) { 81 fprintf (stderr, "low-sig model @ %f, %f (%f sum, %f peak)\n", 82 source->peak->xf, source->peak->yf, modelSum, source->peak->rawFlux); 83 } 71 84 72 85 source->mode |= PM_SOURCE_MODE_LINEAR_FIT;
Note:
See TracChangeset
for help on using the changeset viewer.
