Changeset 27778 for trunk/ippToPsps/src/ippToPspsBatchDetection.c
- Timestamp:
- Apr 26, 2010, 3:52:55 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/ippToPspsBatchDetection.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/ippToPspsBatchDetection.c
r27760 r27778 23 23 24 24 // printf("mag=%f\texpTime=%f\tzeroPoint=%f\tflux=%f\n", magnitude, exposureTime, zeroPoint, flux); 25 return (isnormal(*flux) && *flux > 0.0) ? true : false;25 return (isnormal(*flux)) ? true : false; 26 26 } 27 27 … … 286 286 imageID[s] = pspsImageId; 287 287 obsTimes[s] = obsTime; 288 ippToPsps_getFlux(zeroPoint, exposureTime, instMagErr[s], &instFluxErr[s]);289 ippToPsps_getFlux(zeroPoint, exposureTime, peakMag[s], &peakFlux[s]);290 288 291 289 // check for invalid flux values (if not already labelled as a duplicate) 292 if (!ippToPsps_getFlux(zeroPoint, exposureTime, instMag[s], &instFlux[s]) && !isDuplicate) { 290 if ((!ippToPsps_getFlux(zeroPoint, exposureTime, instMagErr[s], &instFluxErr[s]) || 291 !ippToPsps_getFlux(zeroPoint, exposureTime, peakMag[s], &peakFlux[s]) || 292 !ippToPsps_getFlux(zeroPoint, exposureTime, instMag[s], &instFlux[s])) && !isDuplicate) { 293 293 removeList[numOfDuplicates+numInvalidFlux] = s+1; 294 294 numInvalidFlux++; … … 361 361 status=0; 362 362 if (fits_movnam_hdu(this->fitsOut, BINARY_TBL, "FrameMeta", 0, &status)) 363 psError(PS_ERR_IO, false, "Can't move back to FrameMeta extension to write number of OTAs\n");363 psError(PS_ERR_IO, false, "Can't move back to FrameMeta extension to write number of OTAs\n"); 364 364 else 365 365 fits_write_col(this->fitsOut, TSHORT, FRAMEMETA_NOTA, 1, 1, 1, &nOta, &status);
Note:
See TracChangeset
for help on using the changeset viewer.
