Index: /trunk/psModules/src/camera/pmFPAMosaic.c
===================================================================
--- /trunk/psModules/src/camera/pmFPAMosaic.c	(revision 13188)
+++ /trunk/psModules/src/camera/pmFPAMosaic.c	(revision 13189)
@@ -1072,5 +1072,4 @@
         item->data.S32 = yBin;
     }
-
     psFree(sourceCells);
     psFree(chipRegion);
@@ -1117,4 +1116,43 @@
         return false;
     }
+    
+// this code extracts the WCS information from the header of one of the cells and applies it to
+// the mosaicked chip.  XXX EAM : I am leaving it at this point for PAP to get the binning, etc
+// from the concepts
+# if (0)
+    // if the cells contain the headers, we need to apply the WCS terms from (one of?) the cells
+    for (int i = 0; i < source->cells->n; i++) {
+	pmCell *cell = source->cells->data[i];
+	if (cell == NULL) continue;
+	if (cell->hdu == NULL) continue;
+
+	// extract the WCS terms from this cell
+	pmAstromWCS *wcs = pmAstromWCSfromHeader (cell->hdu->header);
+
+	// modify the wcs terms for the cell offset, binning, and parity
+	xBinRatio = xBinCell / xBinChip;
+	if (xFlip) {
+	    wcs->crpix1 = xCell - wcs->crpix1*xBinRatio;
+	    wcs->cdelt1 *= -1;
+	} else {
+	    wcs->crpix1 = xCell + wcs->crpix1*xBinRatio;
+	}
+	wcs->cdelt1 *= xBinRatio;
+
+	yBinRatio = yBinCell / yBinChip;
+	if (yFlip) {
+	    wcs->crpix2 = yCell - wcs->crpix2*yBinRatio;
+	    wcs->cdelt2 *= -1;
+	} else {
+	    wcs->crpix2 = xCell + wcs->crpix2*yBinRatio;
+	}
+	wcs->cdelt2 *= yBinRatio;
+
+	pmAstromWCStoHeader (targetHDU->header);
+	break;
+	// XXX rather than quitting at this point, we could save this wcs structure and compare
+	// its values to the equivalent version from one of the other cells.
+    }
+# endif
 
     return true;
