Changeset 31449 for trunk/ppSub/src/ppSubFlagNeighbors.c
- Timestamp:
- May 5, 2011, 10:40:58 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubFlagNeighbors.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubFlagNeighbors.c
r31156 r31449 112 112 bool positive = !matchRef && (sourceM1->imageID == 1); 113 113 positive |= matchRef && (sourceM1->imageID == 2); 114 float SN1 = isfinite(sourceM1-> errMag) ? 1.0 / sourceM1->errMag: NAN;114 float SN1 = isfinite(sourceM1->psfMagErr) ? 1.0 / sourceM1->psfMagErr : NAN; 115 115 if (positive) { 116 116 source->diffStats->SNp = SN1; … … 138 138 bool positive = !matchRef && (sourceM1->imageID == 1); 139 139 positive |= matchRef && (sourceM1->imageID == 2); 140 float SN1 = isfinite(sourceM1-> errMag) ? 1.0 / sourceM1->errMag: NAN;141 float SN2 = isfinite(sourceM2-> errMag) ? 1.0 / sourceM2->errMag: NAN;140 float SN1 = isfinite(sourceM1->psfMagErr) ? 1.0 / sourceM1->psfMagErr : NAN; 141 float SN2 = isfinite(sourceM2->psfMagErr) ? 1.0 / sourceM2->psfMagErr : NAN; 142 142 if (positive) { 143 143 source->diffStats->SNp = SN1;
Note:
See TracChangeset
for help on using the changeset viewer.
