Changeset 5802 for trunk/psphot/src/psphotChoosePSF.c
- Timestamp:
- Dec 17, 2005, 10:26:59 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r5772 r5802 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 69 // use the best model: 70 try = models->data[bestN]; 70 71 71 // keep only the selected model: 72 try = models->data[bestN]; 72 // unset the PSFSTAR flag for stars not used for PSF model 73 for (int i = 0; i < try->sources->n; i++) { 74 pmSource *source = try->sources->data[i]; 75 if (try->mask->data.U8[i] & PSFTRY_MASK_FLT_FAIL) { 76 source->mode &= ~PM_SOURCE_PSFSTAR; 77 } 78 } 79 80 // save only the best model; 73 81 pmPSF *psf = psMemCopy(try->psf); 74 psFree (models); // keep only the pmPSF resulting from this analysis82 psFree (models); 75 83 76 84 modelName = pmModelGetType (psf->type);
Note:
See TracChangeset
for help on using the changeset viewer.
