Changeset 6866
- Timestamp:
- Apr 17, 2006, 7:24:11 AM (20 years ago)
- Location:
- trunk/psphot
- Files:
-
- 3 edited
-
doc/notes.txt (modified) (1 diff)
-
src/psphotApResid.c (modified) (3 diffs)
-
src/psphotMagnitudes.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/doc/notes.txt
r6427 r6866 1 2 2006.04.16 3 4 Examining some of the throughput issues. the flux measurement speed 5 is strongly dependent on the interation of the function step size: 6 7 dz = 0.01 : 3.24s for 4400 objects 8 dz = 0.1 : 0.44s for 4400 objects 9 10 there is an increased error in the result with the larger step size, 11 but it is smaller than the phot error. Still, we could do better 12 with a smarter integration function. 13 14 Including the aperture photometry on all sources, but not the 15 pixWeight, the source magnitudes takes 4.8 sec for 4400 objects. 16 17 Adding the pixWeight increases the time to 7.5 sec for 4400 objects 1 18 2 19 2006.02.12 -
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 -
trunk/psphot/src/psphotMagnitudes.c
r6862 r6866 3 3 bool psphotMagnitudes (psArray *sources, psMetadata *recipe, pmPSF *psf) { 4 4 5 bool status = false; 6 int Nap = 0; 7 5 8 psTimerStart ("psphot"); 9 10 pmSourceMagnitudesInit (recipe); 6 11 7 12 for (int i = 0; i < sources->n; i++) { 8 13 pmSource *source = (pmSource *) sources->data[i]; 9 pmSourceMagnitudes (source, psf, true, true); 14 status = pmSourceMagnitudes (source, psf, PM_SOURCE_PHOT_GROWTH | PM_SOURCE_PHOT_APCORR | PM_SOURCE_PHOT_WEIGHT); 15 // status = pmSourceMagnitudes (source, psf, PM_SOURCE_PHOT_GROWTH | PM_SOURCE_PHOT_APCORR); 16 if (status) Nap ++; 10 17 } 11 18 12 psLogMsg ("psphot.magnitudes", 4, "measure magnitudes : %f sec for %d objects \n", psTimerMark ("psphot"), sources->n);19 psLogMsg ("psphot.magnitudes", 4, "measure magnitudes : %f sec for %d objects (%d with apertures)\n", psTimerMark ("psphot"), sources->n, Nap); 13 20 return true; 14 21 }
Note:
See TracChangeset
for help on using the changeset viewer.
