- Timestamp:
- Sep 17, 2009, 2:26:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotSourceSize.c
r25390 r25433 194 194 bool psphotSourceSizePSF (psphotSourceSizeOptions *options, psArray *sources, pmPSF *psf) { 195 195 196 // select the psf stars 197 psArray *psfstars = psArrayAllocEmpty (100); 198 196 // select stats from the psf stars 199 197 psVector *Ap = psVectorAllocEmpty (100, PS_TYPE_F32); 200 198 psVector *ApErr = psVectorAllocEmpty (100, PS_TYPE_F32); … … 205 203 pmSource *source = sources->data[i]; 206 204 if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue; 207 psArrayAdd (psfstars, 100, source);208 205 209 206 // XXX can we test if psfMag is set and calculate only if needed? … … 229 226 options->ApSysErr = psVectorSystematicError(dAp, ApErr, 0.05); 230 227 fprintf (stderr, "psf-sum: %f +/- %f\n", options->ApResid, options->ApSysErr); 228 229 psFree (Ap); 230 psFree (ApErr); 231 psFree (stats); 232 psFree (dAp); 231 233 232 234 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
