IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27804


Ignore:
Timestamp:
Apr 29, 2010, 1:06:18 PM (16 years ago)
Author:
rhenders
Message:

Was STILL not catching 0.0 flux values. Fixed now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/ippToPspsBatchDetection.c

    r27800 r27804  
    2323
    2424    //    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;
    2626}
    2727
     
    287287                    obsTimes[s] = obsTime;
    288288
     289                    ippToPsps_getFlux(zeroPoint, exposureTime, instMagErr[s], &instFluxErr[s]);
     290
    289291                    // 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]) ||
    292293                                !ippToPsps_getFlux(zeroPoint, exposureTime, instMag[s], &instFlux[s])) && !isDuplicate) {
    293294                        removeList[numOfDuplicates+numInvalidFlux] = s+1;
    294295                        numInvalidFlux++;
    295                     } 
     296                    }
    296297
    297298                    // store max/min objID
Note: See TracChangeset for help on using the changeset viewer.