Changeset 19908
- Timestamp:
- Oct 6, 2008, 3:08:55 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r19881 r19908 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 } 2 17 3 18 // try PSF models and select best option … … 87 102 88 103 psArray *stars = psArrayAllocEmpty (sources->n); 104 105 // psphotCountPSFStars (sources); 89 106 90 107 // select the candidate PSF stars (pointers to original sources) … … 100 117 } 101 118 } 119 120 // psphotCountPSFStars (sources); 121 102 122 // check that the identified psf stars sufficiently cover the region; if not, extend the 103 123 // limits somewhat 104 124 psphotCheckStarDistribution (stars, sources, options); 125 126 // psphotCountPSFStars (sources); 105 127 106 128 psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected candidate %ld PSF objects\n", stars->n); … … 295 317 psMetadataAddF32 (recipe, PS_LIST_TAIL, "DSY_STDV", PS_META_REPLACE, "stdev of mean-corrected dSYY", nSy); 296 318 319 // psphotCountPSFStars (sources); 320 297 321 // unset the PSFSTAR flag for stars not used for PSF model 298 322 for (int i = 0; i < try->sources->n; i++) { … … 302 326 } 303 327 } 328 329 // psphotCountPSFStars (sources); 304 330 305 331 // build a PSF residual image … … 402 428 } 403 429 430 // psphotCountPSFStars (sources); 431 404 432 char *modelName = pmModelClassGetName (psf->type); 405 433 psLogMsg ("psphot.pspsf", PS_LOG_INFO, "select psf model: %f sec\n", psTimerMark ("psphot"));
Note:
See TracChangeset
for help on using the changeset viewer.
