IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 21, 2010, 3:01:12 PM (16 years ago)
Author:
eugene
Message:

for psf-matched images: re-determine the psf; re-generate the models with the new psf; re-fit the fluxes; subtract all sources; as radial aperture fluxes are measured only replace the current source of interest; replace all sources before convolving to the next psf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psphot/src/psphotSourceMatch.c

    r30096 r30141  
    243243            peak->footprint = pmFootprintCopyData(footprint, readout->image);
    244244
     245            // the peak does not claim ownership of the footprint (it does not free it). save a copy of this
     246            // footprint on detections->footprints so we can free it later
     247            psArrayAdd(detections->footprints, 100, peak->footprint);
     248            psFree (peak->footprint);
     249           
    245250            // create a new source
    246251            pmSource *source = pmSourceAlloc();
     
    249254
    250255            // add the peak
    251             source->peak = psMemIncrRefCounter(peak);
     256            source->peak = peak;
    252257
    253258            // allocate space for moments
     
    261266            psArrayAdd (detections->newSources, 100, source);
    262267            psFree (source);
    263             psFree (peak);
    264268        }
    265269        psFree (footprint);
Note: See TracChangeset for help on using the changeset viewer.