Changeset 5772 for trunk/psphot/src/psphotChoosePSF.c
- Timestamp:
- Dec 13, 2005, 6:43:44 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r5058 r5772 13 13 // array to store candidate PSF stars 14 14 int NSTARS = psMetadataLookupS32 (&status, config, "PSF_MAX_NSTARS"); 15 if (!status) NSTARS = sources->n; 15 if (!status) NSTARS = PS_MIN (sources->n, 200); 16 16 17 stars = psArrayAlloc (sources->n); 17 18 stars->n = 0; … … 20 21 for (int i = 0; (i < sources->n) && (stars->n < NSTARS); i++) { 21 22 pmSource *source = sources->data[i]; 22 if (source->type != PM_SOURCE_PSFSTAR) continue; 23 psArrayAdd (stars, 200, source); 23 if (source->mode & PM_SOURCE_PSFSTAR) psArrayAdd (stars, 200, source); 24 24 } 25 ps Trace (".psphot.pspsf", 3, "selected candidate %d PSF objects\n", stars->n);25 psLogMsg ("psphot.pspsf", 3, "selected candidate %d PSF objects\n", stars->n); 26 26 27 27 // get the fixed PSF fit radius … … 66 66 } 67 67 } 68 // XXX EAM : need to unflag the PSF stars which are not used to build the PSF 69 // XXX EAM : each pmPSFtry needs to have its own mask array 68 70 69 71 // keep only the selected model:
Note:
See TracChangeset
for help on using the changeset viewer.
