Changeset 17338
- Timestamp:
- Apr 6, 2008, 10:13:54 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080324/psphot/src/psphotSourceSize.c
r17239 r17338 29 29 if (isfinite(source->crNsigma)) continue; 30 30 31 source->crNsigma = -1.0;32 source->extNsigma = 0.0;33 34 31 // source must have been subtracted 35 source->crNsigma = -3.0;36 32 if (!(source->mode & PM_SOURCE_MODE_SUBTRACTED)) continue; 37 33 … … 40 36 psU8 **mask = source->maskObj->data.U8; 41 37 38 // check for extendedness: measure the delta flux significance at the 1 sigma contour 39 source->extNsigma = psphotModelContour (source->pixels, source->weight, source->maskObj, source->modelPSF, 1.0); 40 41 // XXX prevent a source from being both CR and EXT? 42 if (source->extNsigma > EXT_NSIGMA_LIMIT) { 43 source->mode |= PM_SOURCE_MODE_EXT_LIMIT; 44 } 45 42 46 int xPeak = source->peak->xf - source->pixels->col0 + 0.5; 43 47 int yPeak = source->peak->yf - source->pixels->row0 + 0.5; 44 48 45 // skip sources which are too close to a boundary46 source->crNsigma = -4.0;49 // XXX for now, skip sources which are too close to a boundary 50 // XXX raise a flag? 47 51 if (xPeak < 1) continue; 48 52 if (xPeak > source->pixels->numCols - 2) continue; … … 51 55 52 56 // XXX for now, just skip any sources with masked pixels 53 source->crNsigma = -5.0;57 // XXX raise a flag? 54 58 bool keep = true; 55 59 for (int iy = -1; (iy <= +1) && keep; iy++) { … … 59 63 } 60 64 if (!keep) continue; 61 62 // measure the flux at the 1 sigma contour63 // XXX prevent a source from being both CR and EXT?64 source->extNsigma = psphotModelContour (source->pixels, source->weight, source->maskObj, source->modelPSF, 1.0);65 66 if (source->extNsigma > EXT_NSIGMA_LIMIT) {67 source->mode |= PM_SOURCE_MODE_EXT_LIMIT;68 }69 65 70 66 // XXX need to deal with edge peaks... and mask
Note:
See TracChangeset
for help on using the changeset viewer.
