Changeset 15814 for trunk/psModules/src/objects/pmSource.c
- Timestamp:
- Dec 13, 2007, 12:09:35 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r15811 r15814 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.4 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-12-13 2 1:45:08$8 * @version $Revision: 1.47 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-12-13 22:09:35 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 703 703 if (*vMsk) { 704 704 vMsk++; 705 psTrace("psModules.objects", 10, "Ignoring pixel %d,%d due to mask: %d\n", 706 col, row, (int)*vMsk); 705 707 continue; 706 708 } … … 713 715 // radius is just a function of (xDiff, yDiff) 714 716 if (!VALID_RADIUS(xDiff, yDiff, R2)) { 717 #if 1 718 psTrace("psModules.objects", 10, "Ignoring pixel %d,%d due to position: %f %f\n", 719 col, row, xDiff, yDiff); 720 #endif 715 721 continue; 716 722 } … … 722 728 // XXX EAM : should this limit be user-defined? 723 729 if (PS_SQR(pDiff) < wDiff) { 730 #if 1 731 psTrace("psModules.objects", 10, "Ignoring pixel %d,%d due to insignificance: %f, %f\n", 732 col, row, pDiff, wDiff); 733 #endif 724 734 continue; 725 735 } … … 746 756 // XXX EAM - the limit is a bit arbitrary. make it user defined? 747 757 if ((numPixels < 0.75*R2) || (Sum <= 0)) { 748 psTrace ("psModules.objects", 3, "no valid pixels for source\n"); 758 psTrace ("psModules.objects", 3, "insufficient valid pixels (%d vs %d; %f) for source\n", 759 numPixels, (int)(0.75*R2), Sum); 749 760 psTrace("psModules.objects", 5, "---- end (false) ----\n"); 750 761 return (false);
Note:
See TracChangeset
for help on using the changeset viewer.
