Index: /branches/czw_branch/20120906/ppSkycell/src/ppSkycellLoop.c
===================================================================
--- /branches/czw_branch/20120906/ppSkycell/src/ppSkycellLoop.c	(revision 34449)
+++ /branches/czw_branch/20120906/ppSkycell/src/ppSkycellLoop.c	(revision 34450)
@@ -198,7 +198,12 @@
         psImage *image1 = psImageAlloc(numCols1, numRows1, PS_TYPE_F32); // Binned image
         psImage *image2 = psImageAlloc(numCols2, numRows2, PS_TYPE_F32); // Binned image
-        psImageInit(image1, 0);
-        psImageInit(image2, 0);
-
+        psImageInit(image1,NAN);
+        psImageInit(image2,NAN);
+	for (int y = 0; y < numRows1; y++) {
+	  for (int x = 0; x < numCols1; x++) {
+	    image1->data.F32[y][x] = NAN;
+	  }
+	}
+	
         psImage *mask1 = NULL, *mask2 = NULL; // Binned masks
         if (data->masksName) {
@@ -215,5 +220,5 @@
                 continue;
             }
-
+	    fprintf(stderr,"ISITNAN? %g\n",image1->data.F32[0][0]);
             pmFPAfileActivateSingle(data->config->files, true, "PPSKYCELL.IMAGE", j);
             if (data->masksName) {
@@ -267,6 +272,6 @@
             // XXX Completely neglecting rotations
             // The skycells are divided up neatly with them all having the same orientation
-            psImageOverlaySection(image1, bin1RO->image, xOffset1, yOffset1, "=");
-            psImageOverlaySection(image2, bin2RO->image, xOffset2, yOffset2, "=");
+	    psImageOverlaySection(image1, bin1RO->image, xOffset1, yOffset1, "=");
+	    psImageOverlaySection(image2, bin2RO->image, xOffset2, yOffset2, "=");
             if (data->masksName) {
                 psImageOverlaySection(mask1, bin1RO->mask, xOffset1, yOffset1, "=");
