Changeset 27804
- Timestamp:
- Apr 29, 2010, 1:06:18 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/ippToPspsBatchDetection.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/ippToPspsBatchDetection.c
r27800 r27804 23 23 24 24 // printf("mag=%f\texpTime=%f\tzeroPoint=%f\tflux=%f\n", magnitude, exposureTime, zeroPoint, flux); 25 return ( isfinite(*flux) && *flux > 0.0) ? true : false;25 return (!isfinite(*flux) || *flux < 0.000001) ? false : true; 26 26 } 27 27 … … 287 287 obsTimes[s] = obsTime; 288 288 289 ippToPsps_getFlux(zeroPoint, exposureTime, instMagErr[s], &instFluxErr[s]); 290 289 291 // check for invalid flux values (if not already labelled as a duplicate) 290 if ((!ippToPsps_getFlux(zeroPoint, exposureTime, instMagErr[s], &instFluxErr[s]) || 291 !ippToPsps_getFlux(zeroPoint, exposureTime, peakMag[s], &peakFlux[s]) || 292 if ((!ippToPsps_getFlux(zeroPoint, exposureTime, peakMag[s], &peakFlux[s]) || 292 293 !ippToPsps_getFlux(zeroPoint, exposureTime, instMag[s], &instFlux[s])) && !isDuplicate) { 293 294 removeList[numOfDuplicates+numInvalidFlux] = s+1; 294 295 numInvalidFlux++; 295 } 296 } 296 297 297 298 // store max/min objID
Note:
See TracChangeset
for help on using the changeset viewer.
