- Timestamp:
- Feb 24, 2011, 12:49:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psphot/src/psphotGuessModels.c
r30038 r30753 160 160 pmSource *source = sources->data[i]; 161 161 162 if (source->mode & PM_SOURCE_MODE_MOMENTS_FAILURE) { 163 fprintf (stderr, "moment failure\n"); 164 } 165 162 166 // this is used to mark sources for which the model is measured. We check later that 163 167 // all are used. … … 187 191 useMoments = (useMoments && source->moments); // can't if there are no moments 188 192 useMoments = (useMoments && source->moments->nPixels); // can't if the moments were not measured 189 useMoments = (useMoments && !(source->mode & &PM_SOURCE_MODE_MOMENTS_FAILURE)); // can't if the moments failed...193 useMoments = (useMoments && !(source->mode & PM_SOURCE_MODE_MOMENTS_FAILURE)); // can't if the moments failed... 190 194 191 195 float Xo, Yo; … … 198 202 } 199 203 204 if (source->mode & PM_SOURCE_MODE_SATSTAR) { 205 fprintf (stderr, "satstar: %f,%f vs %f,%f : %c\n", 206 source->moments->Mx, source->moments->My, 207 source->peak->xf, source->peak->yf, 208 (useMoments ? 'T' : 'F')); 209 } 210 200 211 // set PSF parameters for this model (apply 2D shape model to coordinates Xo, Yo) 201 212 pmModel *modelPSF = pmModelFromPSFforXY(psf, Xo, Yo, Io);
Note:
See TracChangeset
for help on using the changeset viewer.
