Index: trunk/pswarp/src/pswarpTransformReadout.c
===================================================================
--- trunk/pswarp/src/pswarpTransformReadout.c	(revision 10952)
+++ trunk/pswarp/src/pswarpTransformReadout.c	(revision 10954)
@@ -8,5 +8,5 @@
 
     // select the current recipe
-    psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
+    // psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, PSWARP_RECIPE);
 
     int outNx = output->image->numCols;
@@ -27,4 +27,7 @@
     pmChip *chipOutput = cell->parent;
     pmFPA *fpaOutput = chipOutput->parent;
+
+    psF32 **outData = output->image->data.F32;
+    psImage *inImage = input->image;
 
     // Iterate over the output image pixels
@@ -48,6 +51,9 @@
 
 		// XXX get interpolation method from the recipe
-		outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, inPix->x, inPix->y, mask, 1, NAN, PS_INTERPOLATE_BILINEAR);
+		outData[y][x] = (psF32)psImagePixelInterpolate(inImage, inPix->x, inPix->y, NULL, 1, NAN, PS_INTERPOLATE_BILINEAR);
+		// modify zero and scale?
 
+		// outData[y][x] = (psF32)psImagePixelInterpolate(inImage, inPix->x, inPix->y, mask, 1, NAN, PS_INTERPOLATE_BILINEAR);
+		
 # if (0)
 		if (error) {
@@ -58,8 +64,4 @@
 											    mask, 1, NAN);
 		}
-# endif
-
-		outImage->data.F32[y][x] = (outImage->data.F32[y][x] - offset) / scale;
-# if (0)
 		if (error) {
 		    outError->data.F32[y][x] = outError->data.F32[y][x] / SQUARE(scale);
