Index: /branches/pap/psModules/src/imcombine/pmStack.c
===================================================================
--- /branches/pap/psModules/src/imcombine/pmStack.c	(revision 25966)
+++ /branches/pap/psModules/src/imcombine/pmStack.c	(revision 25967)
@@ -34,6 +34,6 @@
 
 #define TESTING                         // Enable test output
-#define TEST_X 1748-1                     // x coordinate to examine
-#define TEST_Y 1339-1                     // y coordinate to examine
+#define TEST_X 1500-1                     // x coordinate to examine
+#define TEST_Y 4000-1                     // y coordinate to examine
 
 
@@ -934,7 +934,22 @@
     for (int y = minInputRows; y < maxInputRows; y++) {
         for (int x = minInputCols; x < maxInputCols; x++) {
+#ifdef TESTING
+            if (x == TEST_X && y == TEST_Y) {
+                fprintf(stderr, "Combining pixel %d,%d: %x %x %d %f %f %f %d %d %d\n",
+                        x, y, maskVal, bad, numIter, rej, sys, olympic, useVariance, safe, rejection);
+            }
+#endif
             psVector *reject = NULL; // Images to reject for this pixel
             if (rejection) {
                 reject = pixelMapQuery(pixelMap, minInputCols, minInputRows, x, y);
+#ifdef TESTING
+                if (x == TEST_X && y == TEST_Y) {
+                    fprintf(stderr, "Rejected inputs: ");
+                    for (int i = 0; i < reject->n; i++) {
+                        fprintf(stderr, "%d ", reject->data.U16[i]);
+                    }
+                    fprintf(stderr, "\n");
+                }
+#endif
             }
             combinePixels(combinedImage, combinedMask, combinedVariance, input, weights,
