IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23306


Ignore:
Timestamp:
Mar 12, 2009, 2:26:59 PM (17 years ago)
Author:
eugene
Message:

added optional code to squash input NaNs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMaskReadout.c

    r21366 r23306  
    2929    }
    3030
     31    // make this an option via the recipe
     32    if (0) {
     33      psImage *im = readout->image;
     34      psImage *wt = readout->variance;
     35      psImage *mk = readout->mask;
     36      for (int j = 0; j < im->numRows; j++) {
     37        for (int i = 0; i < im->numCols; i++) {
     38          if (isfinite(im->data.F32[j][i]) && isfinite(wt->data.F32[j][i])) continue;
     39          mk->data.PS_TYPE_IMAGE_MASK_DATA[j][i] |= maskBad;
     40        }
     41      }
     42    }
     43
    3144    // mask the excluded outer pixels
    3245    // these coordinates refer to the parent image
Note: See TracChangeset for help on using the changeset viewer.