Index: /branches/eam_branches/ipp-20101205/psModules/src/imcombine/pmSubtraction.c
===================================================================
--- /branches/eam_branches/ipp-20101205/psModules/src/imcombine/pmSubtraction.c	(revision 30350)
+++ /branches/eam_branches/ipp-20101205/psModules/src/imcombine/pmSubtraction.c	(revision 30351)
@@ -1466,4 +1466,10 @@
 		    snprintf (name, 128, "conv.sample1.%03d.fits", nOut1);
 		    psFitsWriteImageSimple (name, kernel->image, NULL);
+
+		    fprintf (stderr, "incov: %d,%d; kern: %d,%d, outcov: %d,%d\n", 
+			     ro1->covariance->image->numCols, ro1->covariance->image->numRows, 
+			     kernel->image->numCols, kernel->image->numRows,
+			     cov->image->numCols, cov->image->numRows);
+
 		    nOut1 ++;
 		}
@@ -1495,9 +1501,15 @@
 		    psFitsWriteImageSimple (name, cov->image, NULL);
 
-		    snprintf (name, 128, "incovar.sample2.%03d.fits", nOut1);
+		    snprintf (name, 128, "incovar.sample2.%03d.fits", nOut2);
 		    psFitsWriteImageSimple (name, ro2->covariance->image, NULL);
 
-		    snprintf (name, 128, "conv.sample2.%03d.fits", nOut1);
+		    snprintf (name, 128, "conv.sample2.%03d.fits", nOut2);
 		    psFitsWriteImageSimple (name, kernel->image, NULL);
+
+		    fprintf (stderr, "incov: %d,%d; kern: %d,%d, outcov: %d,%d\n", 
+			     ro2->covariance->image->numCols, ro2->covariance->image->numRows, 
+			     kernel->image->numCols, kernel->image->numRows,
+			     cov->image->numCols, cov->image->numRows);
+
 		    nOut2 ++;
 		}
