Index: trunk/psphot/src/psphotEnsemblePSF.c
===================================================================
--- trunk/psphot/src/psphotEnsemblePSF.c	(revision 9734)
+++ trunk/psphot/src/psphotEnsemblePSF.c	(revision 9771)
@@ -126,4 +126,10 @@
         pmModelAdd (flux, mask, model, false, false);
 
+	// XXX test output line
+	if ((fabs(x - 298) < 2) && (fabs(y - 583) < 2)) {
+	    psphotSaveImage (NULL, inSource->pixels, "weird.obj.fits");
+	    psphotSaveImage (NULL, flux, "weird.mod.fits");
+	}
+
         // calculate nDOF (nPix - 1)
         // int Nmaskpix = psImageCountPixelMask (mask, allArray, PM_MASK_SAT);
