- Timestamp:
- Jun 25, 2015, 10:05:06 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150616
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphot/src/psphotFitSourcesLinear.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150616
-
branches/eam_branches/ipp-20150616/psphot/src/psphotFitSourcesLinear.c
r38039 r38552 269 269 continue; 270 270 } 271 if (modelSum < 0.5) continue; // skip sources with no model constraint (somewhat arbitrary limit)272 if (modelSum < 0.8) {273 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "low-sig model @ %f, %f (%f masked sum, %f sum, %f peak)\n",274 source->peak->xf, source->peak->yf, maskedSum, modelSum, source->peak->rawFlux);275 }276 if (maskedSum < 0.5) {277 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "worrying model @ %f, %f (%f masked sum, %f sum, %f peak)\n",278 source->peak->xf, source->peak->yf, maskedSum, modelSum, source->peak->rawFlux);279 }280 281 271 bool isPSF = false; 282 272 pmModel *model = pmSourceGetModel (&isPSF, source); 273 274 float Io = model->params->data.F32[PM_PAR_I0]; 275 model->params->data.F32[PM_PAR_I0] = 1.0; 276 float normFlux = model->class->modelFlux(model->params); 277 model->params->data.F32[PM_PAR_I0] = Io; 278 279 // printf("%5d %4.3f %4.3f %4.3f\n", source->seq, normFlux, modelSum, maskedSum); 280 float cut = .85; 281 if (modelSum < cut * normFlux) continue; 282 if (maskedSum < cut * normFlux) continue; 283 283 284 284 // clear the 'mark' pixels and remask on the fit aperture
Note:
See TracChangeset
for help on using the changeset viewer.
