Index: /trunk/psphot/src/psphotMaskReadout.c
===================================================================
--- /trunk/psphot/src/psphotMaskReadout.c	(revision 34292)
+++ /trunk/psphot/src/psphotMaskReadout.c	(revision 34293)
@@ -58,4 +58,16 @@
             return false;
         }
+    }
+
+    // insure than any non-finite pixels in image or variance are masked
+    // get the PSPHOT.MASK value from the config
+    psImageMaskType maskValue;
+    if (!pmConfigMaskSetBits (&maskValue, NULL, config)) {
+	psError (PS_ERR_UNKNOWN, false, "Unable to define the mask bit values");
+	return false;
+    }
+    if (!pmReadoutMaskInvalid(readout, maskValue, maskSat)) {
+	psError (PS_ERR_UNKNOWN, false,  "Unable to mask invalid pixels in readout.");
+	return false;
     }
 
