IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2013, 1:35:03 PM (13 years ago)
Author:
eugene
Message:

set up the rawFlux,smoothFlux,detValue correctly for external sources; remove some deprecated test code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotMergeSources.c

    r36198 r36213  
    3838    psArray *newSources = detections->newSources;
    3939    psAssert (newSources, "missing sources?");
    40 
    41     // XXX TEST:
    42     if (detections->allSources) {
    43         psphotMaskCosmicRayFootprintCheck(detections->allSources);
    44     }
    45     if (detections->newSources) {
    46         psphotMaskCosmicRayFootprintCheck(detections->newSources);
    47     }
    4840
    4941    if (!detections->allSources) {
     
    139131            for (int i = 0; i < extCFF->allSources->n; i++) {
    140132                pmSource *source = extCFF->allSources->data[i];
     133
     134                // setting this bit not only tracks the inputs, it makes pmSourceMoments
     135                // keep the Mx,My values for the centroid. 
    141136                source->mode |= PM_SOURCE_MODE_EXTERNAL;
    142137
    143                 // the supplied peak flux needs to be re-normalized
    144                 source->peak->rawFlux = 1.0;
    145                 source->peak->smoothFlux = 1.0;
    146                 source->peak->detValue = 1.0;
     138                // source->peak->detValue,rawFlux,smoothFlux all set to input flux value
     139                // source->peak->xf,yf, moments->Mx,My all set to input position
    147140
    148141                // drop the loaded source modelPSF
Note: See TracChangeset for help on using the changeset viewer.