Index: trunk/stac/src/stacTransform.c
===================================================================
--- trunk/stac/src/stacTransform.c	(revision 3669)
+++ trunk/stac/src/stacTransform.c	(revision 5743)
@@ -130,4 +130,5 @@
 	for (int i = 0; i < nImages; i++) {
 	    (*outputs)->data[i] = psImageAlloc(outnx, outny, PS_TYPE_F32);
+	    psImageInit((*outputs)->data[i], 0.0);
 	}
     }
@@ -200,5 +201,5 @@
 		    // Change PS_INTERPOLATE_BILINEAR to best available technique.
 		    outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, detector->x,
-									      detector->y, mask, 1, 0.0,
+									      detector->y, mask, 1, NAN,
 									      PS_INTERPOLATE_BILINEAR);
 		    if (error) {
@@ -207,5 +208,5 @@
 												detector->x,
 												detector->y,
-												mask, 1, 0.0);
+												mask, 1, NAN);
 		    }
 
