IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 11, 2011, 1:42:35 PM (15 years ago)
Author:
eugene
Message:

fix forced photometry of matched objects (psf model only) : needed to generate a guess model, which meant re-working psphotGuessModels to apply to only the unguessed objects in the allSources detections, not the newSources, so they could be applied to the matched objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/psphot/src/psphotGuessModels.c

    r32633 r32924  
    4646    psAssert (detections, "missing detections?");
    4747
    48     psArray *sources = detections->newSources;
     48    psArray *sources = detections->allSources;
    4949    psAssert (sources, "missing sources?");
    5050
     
    160160        pmSource *source = sources->data[i];
    161161
     162        // do not redo sources already guessed
     163        if (source->tmpFlags & PM_SOURCE_TMPF_MODEL_GUESS) continue;
     164
    162165        // this is used to mark sources for which the model is measured. We check later that
    163166        // all are used.
Note: See TracChangeset for help on using the changeset viewer.