IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 17, 2009, 2:26:32 PM (17 years ago)
Author:
eugene
Message:

change radius for extended sources to use footprint; clean up some of the visualizations; plug some leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotSourceSize.c

    r25390 r25433  
    194194bool psphotSourceSizePSF (psphotSourceSizeOptions *options, psArray *sources, pmPSF *psf) {
    195195
    196     // select the psf stars
    197     psArray *psfstars = psArrayAllocEmpty (100);
    198 
     196    // select stats from the psf stars
    199197    psVector *Ap = psVectorAllocEmpty (100, PS_TYPE_F32);
    200198    psVector *ApErr = psVectorAllocEmpty (100, PS_TYPE_F32);
     
    205203        pmSource *source = sources->data[i];
    206204        if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue;
    207         psArrayAdd (psfstars, 100, source);
    208205
    209206        // XXX can we test if psfMag is set and calculate only if needed?
     
    229226    options->ApSysErr = psVectorSystematicError(dAp, ApErr, 0.05);
    230227    fprintf (stderr, "psf-sum: %f +/- %f\n", options->ApResid, options->ApSysErr);
     228
     229    psFree (Ap);
     230    psFree (ApErr);
     231    psFree (stats);
     232    psFree (dAp);
    231233
    232234    return true;
Note: See TracChangeset for help on using the changeset viewer.