Changeset 12665 for trunk/psphot/src/psphotChoosePSF.c
- Timestamp:
- Mar 28, 2007, 5:20:02 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r11702 r12665 74 74 75 75 // select the candidate PSF stars (pointers to original sources) 76 for (int i = 0; (i < sources->n) && (stars->n < NSTARS); i++) {76 for (int i = 0; i < sources->n; i++) { 77 77 pmSource *source = sources->data[i]; 78 if (source->mode & PM_SOURCE_MODE_PSFSTAR) psArrayAdd (stars, 200, source); 78 if (source->mode & PM_SOURCE_MODE_PSFSTAR) { 79 // keep NSTARS PSF stars, unmark the rest 80 if (stars->n < NSTARS) { 81 psArrayAdd (stars, 200, source); 82 } else { 83 source->mode &= ~PM_SOURCE_MODE_PSFSTAR; 84 } 85 } 79 86 } 80 87 psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected candidate %ld PSF objects\n", stars->n);
Note:
See TracChangeset
for help on using the changeset viewer.
