IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33444


Ignore:
Timestamp:
Mar 8, 2012, 3:59:55 PM (14 years ago)
Author:
bills
Message:

when merging sources and copying a source to a child if there is
no model PSF then there will be no pixels on the destination source.
When this happens clear the PM_SOURCE_TMPF_CANDIDATE_PSFSTAR bit
in source->tmpFlags so that we don't try and use the source for
psf fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMergeSources.c

    r32695 r33444  
    677677      if (sourceOut->modelPSF) {
    678678        pmSourceRedefinePixels (sourceOut, readoutOut, sourceOut->peak->x, sourceOut->peak->y, sourceOut->modelPSF->fitRadius);
    679       }
     679      } else {
     680        // if we have no pixels we can't use it to determine the psf so make sure this bit is off
     681        sourceOut->tmpFlags &= ~PM_SOURCE_TMPF_CANDIDATE_PSFSTAR;
     682       }
    680683
    681684      // child sources have not been subtracted in this image, but this flag may be raised if
     
    900903            // allocate image, weight, mask for the new image for each peak
    901904            if (sourceOut->modelPSF) {
    902               pmSourceRedefinePixels (sourceOut, readout, sourceOut->peak->x, sourceOut->peak->y, sourceOut->modelPSF->fitRadius);
    903             }
     905                pmSourceRedefinePixels (sourceOut, readout, sourceOut->peak->x, sourceOut->peak->y,
     906                                                                        sourceOut->modelPSF->fitRadius);
     907            } else {
     908                // if we have no pixels we can't use it to determine the psf so make sure this bit is off
     909                sourceOut->tmpFlags &= ~PM_SOURCE_TMPF_CANDIDATE_PSFSTAR;
     910            }
    904911
    905912            // child sources have not been subtracted in this image, but this flag may be raised if
Note: See TracChangeset for help on using the changeset viewer.