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

    r32695 r32924  
    160160    }
    161161
    162     // construct an initial model for each object, set the radius to fitRadius, set circular fit mask
    163     psphotGuessModels (config, view, STACK_SRC);
    164 
    165162    // merge the newly selected sources into the existing list
    166163    // NOTE: merge OLD and NEW
    167164    psphotMergeSources (config, view, STACK_SRC);
     165
     166    // Construct an initial model for each object, set the radius to fitRadius, set circular
     167    // fit mask.  NOTE: only applied to sources without guess models
     168    psphotGuessModels (config, view, STACK_SRC);
    168169
    169170    // linear PSF fit to source peaks, subtract the models from the image (in PSF mask)
     
    248249        }
    249250
    250         // create full input models, set the radius to fitRadius, set circular fit mask
    251         // NOTE: apply only to detections->newSources
    252         psphotGuessModels (config, view, STACK_SRC); // pass 2 (detections->newSources)
    253 
    254251        // replace all sources so fit below applies to all at once
    255252        // NOTE: apply only to OLD sources (which have been subtracted)
     
    260257        // XXX check on free of sources...
    261258        psphotMergeSources (config, view, STACK_SRC); // (detections->newSources + detections->allSources -> detections->allSources)
     259
     260        // Construct an initial model for each object, set the radius to fitRadius, set circular
     261        // fit mask.  NOTE: only applied to sources without guess models
     262        psphotGuessModels (config, view, STACK_SRC);
    262263    }
    263264
     
    269270    objects = psphotMatchSources (config, view, STACK_SRC);
    270271    psMemDump("matchsources");
     272
     273    // Construct an initial model for each object, set the radius to fitRadius, set circular
     274    // fit mask.  NOTE: only applied to sources without guess models
     275    psphotGuessModels (config, view, STACK_SRC);
    271276
    272277    psphotStackObjectsUnifyPosition (objects);
Note: See TracChangeset for help on using the changeset viewer.