IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 26, 2018, 12:16:06 PM (8 years ago)
Author:
eugene
Message:

track number of flagged bad pixels; catch failure to read WCS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmMaskBadPixels.c

    r34062 r40532  
    176176
    177177    psTrace ("psModules.detrend", 3, "suspect: < %f or > %f\n", min, max);
     178    int nFlagged = 0;
    178179
    179180    // XXX this loop could result in pixels with suspect = 0.0 but no valid input pixels (all
     
    186187            if (mask && (mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskVal)) continue;
    187188            suspect->data.F32[y][x] += 1.0;
     189            nFlagged ++;
    188190        }
    189191    }
     
    193195    assert(numItem);
    194196    numItem->data.S32++;
     197
     198    psTrace ("psModules.detrend", 3, "Number of flagged pixels: %d\n", nFlagged);
    195199
    196200    return true;
Note: See TracChangeset for help on using the changeset viewer.