IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2011, 10:44:17 AM (15 years ago)
Author:
eugene
Message:

distinguish window used for moment calculation and window used for model fitting more clearly; re-generate the cached model after PCM fitting using new function (instead of caching the fit models); add function to set window which shrinks as well as expands as needed

Location:
branches/eam_branches/ipp-20110710/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psphot/src

    • Property svn:ignore
      •  

        old new  
        2222psphotMakePSF
        2323psphotStack
         24psphotModelTest
  • branches/eam_branches/ipp-20110710/psphot/src/psphotReadout.c

    r31452 r32157  
    137137    }
    138138
    139     // construct sources and measure basic stats (saved on detections->newSources)
     139    // construct sources and measure moments and other basic stats (saved on detections->newSources)
     140    // all sources use the auto-scaled window appropriate to a PSF, except for the saturated
     141    // stars : these use a larger window (3x the basic window)
    140142    if (!psphotSourceStats (config, view, filerule, true)) { // pass 1
    141143        psError(PSPHOT_ERR_UNKNOWN, false, "failure to generate sources");
     
    200202    psphotDumpChisqs (config, view, filerule);
    201203
    202     // XXX re-measure the kron mags with models subtracted
     204    // re-measure the kron mags with models subtracted.  this pass uses a circular window of size PSF_MOMENTS_RADIUS (same window used to measure the psf-scale moments)
     205   
     206    // but this is chosen above to be appropriate for the PSF objects (not galaxies)
    203207    psphotKronMasked(config, view, filerule);
    204208
     
    214218    psphotDumpChisqs (config, view, filerule);
    215219
     220    // XXX note above the extended sources have their moments remeasured with a larger window,
     221    // but the result is replaced with the original PSF-scaled window
     222
    216223    // replace all sources
    217224    psphotReplaceAllSources (config, view, filerule); // pass 1 (detections->allSources)
     
    240247        psphotSubNoise (config, view, filerule); // pass 1 (detections->allSources)
    241248
    242         // define new sources based on only the new peaks
     249        // define new sources based on only the new peaks & measure moments
    243250        // NOTE: new sources are saved on detections->newSources
    244251        psphotSourceStats (config, view, filerule, false); // pass 2 (detections->newSources)
     
    313320
    314321    // XXX re-measure the kron mags with models subtracted
     322    // Note that this uses the PSF_MOMENTS_RADIUS as a window
    315323    psphotKronMasked(config, view, filerule);
    316324
Note: See TracChangeset for help on using the changeset viewer.