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/psphotReadout.c

    r32695 r32924  
    127127    // psphotLoadExtSources (config, view, filerule); // pass 1
    128128
    129     // construct an initial model for each object, set the radius to fitRadius, set circular
    130     // fit mask (detections->newSources)
    131     psphotGuessModels (config, view, filerule); // pass 1
    132 
    133129    // merge the newly selected sources into the existing list
    134130    // NOTE: merge OLD and NEW
    135131    psphotMergeSources (config, view, filerule);
     132
     133    // Construct an initial model for each object, set the radius to fitRadius, set circular
     134    // fit mask.  NOTE: only applied to sources without guess models
     135    psphotGuessModels (config, view, filerule); // pass 1
    136136
    137137    // linear PSF fit to source peaks, subtract the models from the image (in PSF mask)
     
    193193        }
    194194
    195         // create full input models, set the radius to fitRadius, set circular fit mask
    196         // NOTE: apply only to detections->newSources
    197         psphotGuessModels (config, view, filerule); // pass 2 (detections->newSources)
    198 
    199195        // replace all sources so fit below applies to all at once
    200196        // NOTE: apply only to OLD sources (which have been subtracted)
     
    205201        // XXX check on free of sources...
    206202        psphotMergeSources (config, view, filerule); // (detections->newSources + detections->allSources -> detections->allSources)
     203
     204        // Construct an initial model for each object, set the radius to fitRadius, set circular
     205        // fit mask.  NOTE: only applied to sources without guess models
     206        psphotGuessModels (config, view, filerule); // pass 1
    207207
    208208        // NOTE: apply to ALL sources
     
    234234        }
    235235
    236         // create full input models, set the radius to fitRadius, set circular fit mask
    237         // NOTE: apply only to detections->newSources
    238         psphotGuessModels (config, view, filerule); // pass 2 (detections->newSources)
    239 
    240236        // replace all sources so fit below applies to all at once
    241237        // NOTE: apply only to OLD sources (which have been subtracted)
     
    247243        psphotMergeSources (config, view, filerule); // (detections->newSources + detections->allSources -> detections->allSources)
    248244
     245        // Construct an initial model for each object, set the radius to fitRadius, set circular
     246        // fit mask.  NOTE: only applied to sources without guess models
     247        psphotGuessModels (config, view, filerule); // pass 1
     248
    249249        // NOTE: apply to ALL sources
    250250        psphotFitSourcesLinear (config, view, filerule, true); // pass 3 (detections->allSources)
Note: See TracChangeset for help on using the changeset viewer.