IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34293


Ignore:
Timestamp:
Aug 6, 2012, 11:03:53 AM (14 years ago)
Author:
bills
Message:

Insure that all pixels with non-finite image or variance values are
masked.

File:
1 edited

Legend:

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

    r34086 r34293  
    5858            return false;
    5959        }
     60    }
     61
     62    // insure than any non-finite pixels in image or variance are masked
     63    // get the PSPHOT.MASK value from the config
     64    psImageMaskType maskValue;
     65    if (!pmConfigMaskSetBits (&maskValue, NULL, config)) {
     66        psError (PS_ERR_UNKNOWN, false, "Unable to define the mask bit values");
     67        return false;
     68    }
     69    if (!pmReadoutMaskInvalid(readout, maskValue, maskSat)) {
     70        psError (PS_ERR_UNKNOWN, false,  "Unable to mask invalid pixels in readout.");
     71        return false;
    6072    }
    6173
Note: See TracChangeset for help on using the changeset viewer.