Changeset 6866 for trunk/psphot/src/psphotApResid.c
- Timestamp:
- Apr 17, 2006, 7:24:11 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotApResid.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotApResid.c
r6862 r6866 14 14 // S/N limit to perform full non-linear fits 15 15 float FIT_SN_LIM = psMetadataLookupF32 (&status, recipe, "FULL_FIT_SN_LIM"); 16 17 // set limits on the aperture magnitudes 18 pmSourceMagnitudesInit (recipe); 16 19 17 20 // measure the aperture loss as a function of radius for PSF … … 40 43 if (source->mode & PM_SOURCE_MODE_POOR) continue; 41 44 45 model = source->modelPSF; 46 if (model == NULL) continue; 47 42 48 // XXX tune independently? 43 49 if (source->moments->SN < 2*FIT_SN_LIM) continue; 44 50 45 51 // get growth-corrected, apTrend-uncorrected magnitudes in scaled apertures 46 model = pmSourceMagnitudes (source, psf, true, false); 47 if (model == NULL) continue; 52 if (!pmSourceMagnitudes (source, psf, PM_SOURCE_PHOT_GROWTH)) continue; 48 53 49 54 apResid->data.F64[Npsf] = source->apMag - source->psfMag; … … 225 230 psf->ApTrend->coeff[0][0][1][0] = 0; 226 231 psf->ApTrend->coeff[0][0][0][1] = 0; 227 psf->nApResid = residStats->clippedNvalues;232 psf->nApResid = Npsf; 228 233 229 234 // save results for later output
Note:
See TracChangeset
for help on using the changeset viewer.
