- Timestamp:
- Apr 18, 2011, 8:55:26 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/psphot/src/psphotFitSourcesLinearStack.c
r31154 r31313 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.
