IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8782


Ignore:
Timestamp:
Sep 8, 2006, 4:49:40 PM (20 years ago)
Author:
jhoblitt
Message:

fix isfinite() attempting to be called as finite()

Location:
trunk/stac/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacRejection.c

    r7543 r8782  
    144144                                    // Calculate the gradient
    145145                                    grads->data.F32[j] = stacGradient(inputs->data[j], xPix, yPix);
    146                                     if (finite(grads->data.F32[j])) {
     146                                    if (isfinite(grads->data.F32[j])) {
    147147                                        gradsMask->data.U8[j] = 0;
    148148                                        numGrads++;
  • trunk/stac/src/stacScales.c

    r6887 r8782  
    180180                        sum -= offsets->data.F32[i] * (float)numPix;
    181181                        photometry->data.F32[j] = sum * M_PI * aper2 / (float)numPix;
    182                         if (photometry->data.F32[j] > 0 && finite(photometry->data.F32[j])) {
     182                        if (photometry->data.F32[j] > 0 && isfinite(photometry->data.F32[j])) {
    183183                            mask->data.U8[j] = 1;
    184184                            psTrace("stac.scales", 8, "Star at %f,%f --> %f\n", coords->x, coords->y, sum);
Note: See TracChangeset for help on using the changeset viewer.