- Timestamp:
- Sep 23, 2009, 11:17:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotChoosePSF.c
r23989 r25497 73 73 // get the fixed PSF fit radius 74 74 // XXX check that PSF_FIT_RADIUS < SKY_OUTER_RADIUS 75 options->radius = psMetadataLookupF32 (&status, recipe, "PSF_FIT_RADIUS"); 76 assert (status); 75 // options->radius = psMetadataLookupF32 (&status, recipe, "PSF_FIT_RADIUS"); 76 // assert (status); 77 78 // XXX we have calculated a Gaussian window function, use that for both the PSF fit radius 79 // and the aperture radius (scaling SIGMA) 80 // XXX put the scale factors into the recipe 81 float gaussSigma = psMetadataLookupF32(&status, recipe, "MOMENTS_GAUSS_SIGMA"); 82 float fitScale = psMetadataLookupF32(&status, recipe, "PSF_FIT_RADIUS_SCALE"); 83 float apScale = psMetadataLookupF32(&status, recipe, "PSF_APERTURE_SCALE"); 84 options->fitRadius = (int)(fitScale*gaussSigma); 85 options->apRadius = (int)(apScale*gaussSigma); 77 86 78 87 // XXX ROBUST seems to be too agressive given the small numbers. … … 289 298 // XXX test dump of psf star data and psf-subtracted image 290 299 if (psTraceGetLevel("psphot.psfstars") > 5) { 291 psphotDumpPSFStars (readout, try, options-> radius, maskVal, markVal);300 psphotDumpPSFStars (readout, try, options->fitRadius, maskVal, markVal); 292 301 } 293 302
Note:
See TracChangeset
for help on using the changeset viewer.
