- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotMergeSources.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20111122/psphot merged: 33070-33071,33086,33088,33094-33095,33612,33640 /branches/eam_branches/ipp-20120405/psphot (added) merged: 33946,33953
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src/psphotMergeSources.c
r33415 r34041 677 677 if (sourceOut->modelPSF) { 678 678 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 } 680 683 681 684 // child sources have not been subtracted in this image, but this flag may be raised if … … 741 744 psAssert (readoutOut, "missing readout?"); 742 745 746 pmDetections *detectionsOutOld = psMetadataLookupPtr (&status, readoutOut->analysis, "PSPHOT.DETECTIONS"); 747 psArray *oldFootprints = detectionsOutOld ? detectionsOutOld->footprints : NULL; 748 743 749 // replace any existing DETECTION container on readoutOut->analysis with the new one 744 750 pmDetections *detectionsOut = pmDetectionsAlloc(); 751 if (oldFootprints) { 752 // ... but hang on to any existing footprints so that they can be merged with new footprints in pass 2 753 detectionsOut->footprints = psMemIncrRefCounter(oldFootprints); 754 } 745 755 detectionsOut->allSources = psArrayAllocEmpty (100); 746 756 if (!psMetadataAddPtr (readoutOut->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_META_REPLACE | PS_DATA_UNKNOWN, "psphot detections", detectionsOut)) { … … 900 910 // allocate image, weight, mask for the new image for each peak 901 911 if (sourceOut->modelPSF) { 902 pmSourceRedefinePixels (sourceOut, readout, sourceOut->peak->x, sourceOut->peak->y, sourceOut->modelPSF->fitRadius); 903 } 912 pmSourceRedefinePixels (sourceOut, readout, sourceOut->peak->x, sourceOut->peak->y, 913 sourceOut->modelPSF->fitRadius); 914 } else { 915 // if we have no pixels we can't use it to determine the psf so make sure this bit is off 916 sourceOut->tmpFlags &= ~PM_SOURCE_TMPF_CANDIDATE_PSFSTAR; 917 } 904 918 905 919 // 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.
