- Timestamp:
- Dec 2, 2011, 11:42:55 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20111122/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/psphot
- Property svn:mergeinfo changed
/trunk/psphot (added) merged: 32776
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20111122/psphot/src
- Property svn:mergeinfo set to
-
branches/eam_branches/ipp-20111122/psphot/src/psphotKronIterate.c
r32633 r32850 111 111 112 112 pmSource *source = sources->data[i]; 113 if (!source->peak) continue; // XXX how can we have a peak-less source?114 115 // allocate space for moments116 if (!source->moments) continue;117 113 118 114 // set a window function for each source based on the moments 115 // (this skips really bad sources (no peak, no moments, DEFECT) 119 116 psphotKronWindowSetSource (source, kronWindow, false, true); 120 117 } … … 221 218 222 219 // XXX TEST : use a window based on the radial profile numbers: max is skyRadius, min is RADIUS 223 float maxWindow = source->skyRadius; 220 // if we lack the skyRadius (eg MATCHED sources), go to the default value 221 float maxWindow = isfinite(source->skyRadius) ? source->skyRadius : RADIUS; 224 222 float windowRadius = PS_MAX(RADIUS, maxWindow); 225 223 … … 400 398 401 399 if (!source) return false; 400 if (!source->peak) return false; // XXX how can we have a peak-less source? 402 401 if (!source->moments) return false; 402 if (source->type == PM_SOURCE_TYPE_DEFECT) return false; 403 if (source->type == PM_SOURCE_TYPE_SATURATED) return false; 403 404 psAssert(kronWindow, "need a window"); 404 405
Note:
See TracChangeset
for help on using the changeset viewer.
