IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 22, 2011, 9:00:06 AM (14 years ago)
Author:
eugene
Message:

need to guess models for matched detections in order to get forced photometry -- this meant modifying psphotGuessModels to work on the allSources, not newSources and to test if the guess had previously been performed; updates to radial profile analysis to get smoother Krons -- this now agrees very well with sextractor (though my apertures are slightly smaller and not elliptical)

Location:
trunk/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src

  • trunk/psphot/src/psphotStackReadout.c

    r32695 r32996  
    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.