Changeset 31154 for trunk/psphot/src/psphotSourceMatch.c
- Timestamp:
- Apr 4, 2011, 1:12:39 PM (15 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (2 props)
-
src/psphotSourceMatch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:ignore
-
old new 19 19 psphot-config 20 20 Doxyfile 21 a.out.dSYM
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
trunk/psphot/src/psphotSourceMatch.c
r30624 r31154 86 86 if (!src) NEXT1; 87 87 if (!src->peak) NEXT1; 88 if (! finite(src->peak->xf)) NEXT1;89 if (! finite(src->peak->yf)) NEXT1;88 if (!isfinite(src->peak->xf)) NEXT1; 89 if (!isfinite(src->peak->yf)) NEXT1; 90 90 91 91 if (!obj) NEXT2; 92 if (! finite(obj->x)) NEXT2;93 if (! finite(obj->y)) NEXT2;92 if (!isfinite(obj->x)) NEXT2; 93 if (!isfinite(obj->y)) NEXT2; 94 94 95 95 dx = src->peak->xf - obj->x; … … 229 229 int col0 = readout->image->col0; 230 230 231 // XXX the peak type is not really used in psphot 232 // PM_PEAK_LONE is certainly not true, but irrelevant 231 // The peak type is not used in psphot. PM_PEAK_LONE may be wrong, but irrelevant 233 232 float peakFlux = readout->image->data.F32[(int)(obj->y-row0-0.5)][(int)(obj->x-col0-0.5)]; 234 233 pmPeak *peak = pmPeakAlloc(obj->x, obj->y, peakFlux, PM_PEAK_LONE); 235 peak->flux = peakFlux;236 peak->SN = 1.0;237 234 peak->xf = obj->x; 238 235 peak->yf = obj->y;
Note:
See TracChangeset
for help on using the changeset viewer.
