Index: trunk/pswarp/src/pswarpMapGrid.c
===================================================================
--- trunk/pswarp/src/pswarpMapGrid.c	(revision 41897)
+++ trunk/pswarp/src/pswarpMapGrid.c	(revision 42154)
@@ -38,4 +38,5 @@
     int nYpts = (int)(Ny / nYpix) + 1;
 
+    psLogMsg("pswarp", 3, "in grid sampling\n");
     // create the grid of maps
     pswarpMapGrid *grid = pswarpMapGridAlloc (nXpts, nYpts);
@@ -49,5 +50,5 @@
     }
 
-    if (0) {
+    //if (0) {
 	// test the transformation sky<->chip for chip in smf:
 	if (fout == NULL) { fout = fopen ("map.grid.txt", "w");	}
@@ -88,4 +89,8 @@
 		fprintf (fout, "%f %f < %f %f < %f %f \n", TP1->x, TP1->y, FP1->x, FP1->y, CH1->x, CH1->y);
 
+                psLogMsg("pswarp", 3, "testing grid sampling\n");
+                psLogMsg("pswarp", 3, "%f %f > %f %f > %f %f > %f %f | ", CH0->x, CH0->y, FP0->x, FP0->y, TP0->x, TP0->y, sky->r*180/M_PI, sky->d*180/M_PI);
+                psLogMsg("pswarp", 3, "%f %f < %f %f < %f %f \n", TP1->x, TP1->y, FP1->x, FP1->y, CH1->x, CH1->y);
+
 	    }
 	}
@@ -101,5 +106,5 @@
 
 	psFree (sky);
-    }
+    //}
 
     grid->nXpix = nXpix;
