Changeset 32242
- Timestamp:
- Aug 31, 2011, 12:45:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/psphot/src/psphotBlendFit.c
r31452 r32242 186 186 psFree (fitOptions); 187 187 188 psLogMsg ("psphot.psphotBlendFit", PS_LOG_ INFO, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %ld skipped)\n", psTimerMark ("psphot.fit.nonlinear"), Nfit, Npsf, Next, Nfail, sources->n - Nfit);188 psLogMsg ("psphot.psphotBlendFit", PS_LOG_WARN, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %ld skipped)\n", psTimerMark ("psphot.fit.nonlinear"), Nfit, Npsf, Next, Nfail, sources->n - Nfit); 189 189 190 190 psphotVisualShowResidualImage (readout, false); … … 233 233 pmSource *source = sources->data[i]; 234 234 235 # define TEST_X -420.0 236 # define TEST_Y 300.0 237 238 if ((fabs(source->peak->xf - TEST_X) < 5) && (fabs(source->peak->yf - TEST_Y) < 5)) { 239 fprintf (stderr, "test galaxy\n"); 240 } 241 242 # undef TEST_X 243 # undef TEST_Y 244 235 245 // skip non-astronomical objects (very likely defects) 236 246 if (source->mode & PM_SOURCE_MODE_BLEND) continue; … … 246 256 247 257 // limit selection to some SN limit 248 if (sqrt(source->peak->detValue) < FIT_SN_LIM) continue; 249 258 if (source->mode & PM_SOURCE_MODE_EXT_LIMIT) { 259 if (source->moments->KronFlux < FIT_SN_LIM * source->moments->KronFluxErr) continue; 260 } else { 261 if (sqrt(source->peak->detValue) < FIT_SN_LIM) continue; 262 } 250 263 // exclude sources outside optional analysis region 251 264 if (source->peak->xf < AnalysisRegion.x0) continue; … … 267 280 } 268 281 269 // replace object in image 282 // replace object in image & remove excess noise 270 283 if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) { 271 284 pmSourceAdd (source, PM_MODEL_OP_FULL, maskVal); … … 305 318 Nfail ++; 306 319 307 // re-subtract the object, leave local sky 320 // re-subtract the object, leave local sky, re-bump noise 308 321 pmSourceCacheModel (source, maskVal); 309 322 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
Note:
See TracChangeset
for help on using the changeset viewer.
