Changeset 25652
- Timestamp:
- Sep 28, 2009, 5:56:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotChoosePSF.c
r25612 r25652 1 1 # include "psphotInternal.h" 2 3 void psphotCountPSFStars (psArray *sources) {4 5 int nPSF = 0;6 7 // select the candidate PSF stars (pointers to original sources)8 for (int i = 0; i < sources->n; i++) {9 pmSource *source = sources->data[i];10 if (source->mode & PM_SOURCE_MODE_PSFSTAR) {11 nPSF ++;12 }13 }14 15 fprintf (stderr, "N PSF: %d\n", nPSF);16 }17 2 18 3 // try PSF models and select best option … … 111 96 112 97 psArray *stars = psArrayAllocEmpty (sources->n); 113 114 // psphotCountPSFStars (sources);115 98 116 99 // select the candidate PSF stars (pointers to original sources) … … 127 110 } 128 111 129 // psphotCountPSFStars (sources);130 131 112 // check that the identified psf stars sufficiently cover the region; if not, extend the 132 113 // limits somewhat 133 114 psphotCheckStarDistribution (stars, sources, options); 134 135 // psphotCountPSFStars (sources);136 115 137 116 psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected candidate %ld PSF objects\n", stars->n); … … 305 284 306 285 // save only the best model; 307 // XXX we are not saving the fitted sources308 // XXX do we want to keep them so we may optionally write them out?309 286 pmPSF *psf = psMemIncrRefCounter(try->psf); 310 287 psFree (models); … … 316 293 return NULL; 317 294 } 318 319 // psphotCountPSFStars (sources);320 295 321 296 char *modelName = pmModelClassGetName (psf->type);
Note:
See TracChangeset
for help on using the changeset viewer.
