IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36599


Ignore:
Timestamp:
Mar 19, 2014, 4:05:43 PM (12 years ago)
Author:
bills
Message:

in full force merge sources after running RoughClass

Location:
tags/ipp-20140114/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20140114/psphot/src/psphotFullForce.SourceStats.c

    r36375 r36599  
    8585    psAssert (markVal, "missing MARK.PSPHOT");
    8686
    87     psArray *sources = detections->allSources;
     87    // psArray *sources = detections->allSources;
     88    psArray *sources = detections->newSources ? detections->newSources : detections->allSources;
    8889
    8990    // generate the array of sources, define the associated pixel
  • tags/ipp-20140114/psphot/src/psphotFullForceReadout.c

    r36375 r36599  
    5252    psphotLoadExtSources (config, view, filerule);
    5353
     54#ifdef notmoved
     55    // XXX: moved down below
    5456    // merge the newly selected sources into the existing list (detections->allSources)
    5557    // NOTE: merge OLD and NEW
    5658    psphotMergeSources (config, view, filerule);
     59#endif
    5760
    5861    // construct sources and measure moments and other basic stats (saved on detections->allSources)
     
    6366        return psphotReadoutCleanup (config, view, filerule);
    6467    }
     68   
     69    // classify sources based on moments, brightness.  if a PSF model has been loaded, the PSF
     70    // clump defined for it is used not measured (detections->newSources)
     71    if (!psphotRoughClass (config, view, filerule)) { // pass 1
     72        psError (PSPHOT_ERR_UNKNOWN, false, "failed to determine rough classifications");
     73        return psphotReadoutCleanup (config, view, filerule);
     74    }
     75
     76    // merge the newly selected sources into the existing list (detections->allSources)
     77    // NOTE: merge OLD and NEW
     78    psphotMergeSources (config, view, filerule);
     79
    6580
    6681    // generate a psf model for any readouts which need one
Note: See TracChangeset for help on using the changeset viewer.