Index: /trunk/psphot/src/psphotReadout.c
===================================================================
--- /trunk/psphot/src/psphotReadout.c	(revision 10270)
+++ /trunk/psphot/src/psphotReadout.c	(revision 10271)
@@ -14,5 +14,5 @@
     // XXX does this need to invoke I/O?
     // XXX move this input the psphotImageLoop level?
-    if (!pmReadoutGenerateMaskWeight (readout)) {
+    if (!pmReadoutGenerateMaskWeight (readout, true)) {
         return false;
     }
@@ -25,7 +25,7 @@
 
     if (psTraceGetLevel("psphot") > 5) {
-	psphotSaveImage (NULL, readout->image,  "image.fits");
-	psphotSaveImage (NULL, readout->mask,   "mask.fits");
-	psphotSaveImage (NULL, readout->weight, "weight.fits");
+        psphotSaveImage (NULL, readout->image,  "image.fits");
+        psphotSaveImage (NULL, readout->mask,   "mask.fits");
+        psphotSaveImage (NULL, readout->weight, "weight.fits");
     }
 
@@ -54,6 +54,6 @@
 
     if (!strcasecmp (breakPt, "PEAKS")) {
-	if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
-	return true;
+        if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
+        return true;
     }
 
@@ -71,6 +71,6 @@
     }
     if (!strcasecmp (breakPt, "MOMENTS")) {
-	if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
-	return true;
+        if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;
+        return true;
     }
 
@@ -86,6 +86,6 @@
 
     if (!strcasecmp (breakPt, "PSFMODEL")) {
-	if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false;
-	return true;
+        if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false;
+        return true;
     }
 
@@ -95,5 +95,5 @@
     psphotEnsemblePSF (readout, sources, recipe, psf, FALSE);
     if (!strcasecmp (breakPt, "ENSEMBLE")) {
-	goto finish;
+        goto finish;
     }
 
@@ -122,5 +122,5 @@
     // measure aperture photometry corrections
     if (!psphotApResid (readout, sources, recipe, psf)) {
-	psTrace ("psphot", 4, "failure on psphotApResid"); 
+        psTrace ("psphot", 4, "failure on psphotApResid");
         psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");
         return false;
@@ -146,13 +146,13 @@
     // use the psf-model to measure FWHM stats
     if (psf) {
-	if (!psphotPSFstats (readout, recipe, psf)) {
-	    psError(PS_ERR_IO, true, "Failed to measure PSF shape parameters");
-	    return false;
-	}
+        if (!psphotPSFstats (readout, recipe, psf)) {
+            psError(PS_ERR_IO, true, "Failed to measure PSF shape parameters");
+            return false;
+        }
     } else if (sources) {
-	if (!psphotMomentsStats (readout, recipe, sources)) {
-	    psError(PS_ERR_IO, true, "Failed to measure Moment shape parameters");
-	    return false;
-	}
+        if (!psphotMomentsStats (readout, recipe, sources)) {
+            psError(PS_ERR_IO, true, "Failed to measure Moment shape parameters");
+            return false;
+        }
     }
 
