Changeset 42088 for trunk/psphot/src/psphotFitSourcesLinear.c
- Timestamp:
- Feb 28, 2022, 2:40:32 PM (4 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotFitSourcesLinear.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20211108/psphot (added) merged: 41968,42015,42021-42022,42039
- Property svn:mergeinfo changed
-
trunk/psphot/src/psphotFitSourcesLinear.c
r41444 r42088 217 217 int Nsat = 0; 218 218 219 // track number kept at several stages of the analysis 220 int Nstep_0 = 0; 221 int Nstep_1 = 0; 222 int Nstep_2 = 0; 223 int Nstep_3 = 0; 224 int Nstep_4 = 0; 225 int Nstep_5 = 0; 226 219 227 // select the sources which will be used for the fitting analysis 220 228 for (int i = 0; i < sources->n; i++) { … … 246 254 if (source->mode & PM_SOURCE_MODE_MOMENTS_FAILURE) continue; 247 255 256 Nstep_0++; 257 248 258 // XXX count saturated stars 249 259 if (source->mode & PM_SOURCE_MODE_SATSTAR) { … … 255 265 if (!pmSourceCacheModel (source, maskVal)) continue; 256 266 } 267 Nstep_1++; 257 268 258 269 // save the original coords … … 265 276 if (x > AnalysisRegion.x1) continue; 266 277 if (y > AnalysisRegion.y1) continue; 278 Nstep_2++; 267 279 268 280 // check the integral of the model : is it large enough? … … 283 295 continue; 284 296 } 297 Nstep_3++; 298 285 299 bool isPSF = false; 286 300 pmModel *model = pmSourceGetModel (&isPSF, source); … … 306 320 } 307 321 if (modelSum < cutModelSum * normFlux) continue; 322 Nstep_4++; 323 308 324 if (maskedSum < cutMaskedSum * normFlux) continue; 325 Nstep_5++; 309 326 310 327 // clear the 'mark' pixels and remask on the fit aperture … … 322 339 } 323 340 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "built fitSources: %f sec (%ld objects)\n", psTimerMark ("psphot.linear"), sources->n); 341 psLogMsg ("psphot.ensemble", PS_LOG_INFO, "Number of sources kept at each stage: %d %d %d %d %d %d\n", Nstep_0, Nstep_1, Nstep_2, Nstep_3, Nstep_4, Nstep_5); 324 342 325 343 if (fitSources->n == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
