Index: trunk/ppImage/src/ppImageDetrendMask.c
===================================================================
--- trunk/ppImage/src/ppImageDetrendMask.c	(revision 7708)
+++ trunk/ppImage/src/ppImageDetrendMask.c	(revision 7716)
@@ -16,7 +16,7 @@
 
     if (mask->image->type.type != PS_TYPE_MASK) {
-	image = psImageCopy (NULL, mask->image, PS_TYPE_MASK);
+        image = psImageCopy (NULL, mask->image, PS_TYPE_MASK);
     } else {
-	image = psMemIncrRefCounter (mask->image);
+        image = psMemIncrRefCounter (mask->image);
     }
 
@@ -34,6 +34,6 @@
 
 
-// XXX this function needs to use pmReadoutSetMask to construct the initial mask
+// XXX this function needs to use pmReadoutGenerateMask to construct the initial mask
 // then the pixels will correspond and pmMaskBadPixels can be correctly applied.
-// this function should not have to lookup the value of CELL.SATURATION, nor should it have to 
-// apply it.  
+// this function should not have to lookup the value of CELL.SATURATION, nor should it have to
+// apply it.
Index: trunk/ppImage/src/ppImageDetrendReadout.c
===================================================================
--- trunk/ppImage/src/ppImageDetrendReadout.c	(revision 7708)
+++ trunk/ppImage/src/ppImageDetrendReadout.c	(revision 7716)
@@ -12,10 +12,10 @@
 
     // create the target mask and weight images
-    pmReadoutSetMaskWeight (input);
+    pmReadoutGenerateMaskWeight (input);
 
     // apply the externally supplied mask to the input->mask pixels
     if (options->doMask) {
         pmReadout *mask = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.MASK");
-	pmMaskBadPixels (input, mask, options->maskValue);
+        pmMaskBadPixels (input, mask, options->maskValue);
         // ppImageDetrendMask(input, mask);
     }
@@ -40,15 +40,15 @@
     // Bias, dark and overscan subtraction are all merged.
     if (options->doBias || options->doDark || options->doOverscan) {
-	if (!ppImageDetrendBias(input, bias, dark, options)) {
-	    return false;
-	}
+        if (!ppImageDetrendBias(input, bias, dark, options)) {
+            return false;
+        }
     }
 
     // Flat-field correction (no options used?)
     if (options->doFlat) {
-	pmReadout *flat = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.FLAT");
+        pmReadout *flat = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.FLAT");
         if (!pmFlatField(input, flat)) {
-	    return false;
-	}
+            return false;
+        }
     }
 
