Changeset 4129 for trunk/psphot/src/pspsf.c
- Timestamp:
- Jun 6, 2005, 11:20:45 PM (21 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/pspsf.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:ignore
set to
bin
-
Property svn:ignore
set to
-
trunk/psphot/src/pspsf.c
r4116 r4129 68 68 } 69 69 psLogMsg ("psphot.psftest", 4, "fit flt: %f sec for %d sources\n", psTimerMark ("fit"), sources->n); 70 psTrace ("psphot.psftest", 3, "keeping %d of %d PSF candidates (FLT)\n", Nflt, sources->n); 70 71 DumpModelFits (test->modelFLT, "modelsFLT.dat"); 71 72 72 73 // stage 2: construct a psf (pmPSF) from this collection of model fits 73 74 pmPSFFromModels (test->psf, test->modelFLT, test->mask); 75 76 // count valid sources 77 int Nkeep = 0; 78 for (int i = 0; i < sources->n; i++) { 79 if (test->mask->data.U8[i]) continue; 80 Nkeep++; 81 } 82 psTrace ("psphot.psftest", 3, "keeping %d of %d PSF candidates\n", Nkeep, sources->n); 74 83 75 84 // stage 3: refit with fixed shape parameters … … 96 105 } 97 106 psLogMsg ("psphot.psftest", 4, "fit psf: %f sec for %d sources\n", psTimerMark ("fit"), sources->n); 107 psTrace ("psphot.psftest", 3, "keeping %d of %d PSF candidates (PSF)\n", Npsf, sources->n); 98 108 DumpModelFits (test->modelPSF, "modelsPSF.dat"); 99 109 … … 152 162 bool pmPSFFromModels (pmPSF *psf, psArray *models, psVector *mask) { 153 163 154 int n;155 156 164 // construct the fit vectors from the collection of objects 157 165 // use the mask to ignore missing fits … … 187 195 psf->params->data[i] = RobustFit2D (psf->params->data[i], mask, x, y, z, dz); 188 196 // psPolynomial2DDump (psf->params->data[i]); 197 198 // count valid sources 199 int Nkeep = 0; 200 for (int j = 0; j < mask->n; j++) { 201 if (mask->data.U8[j]) continue; 202 Nkeep++; 203 } 204 psTrace ("psphot.psftest", 3, "keeping %d of %d PSF candidates (PSF param %d)\n", Nkeep, mask->n, i); 205 189 206 } 190 207 return (true);
Note:
See TracChangeset
for help on using the changeset viewer.
