Index: /trunk/psModules/src/astrom/pmAstrometryWCS.c
===================================================================
--- /trunk/psModules/src/astrom/pmAstrometryWCS.c	(revision 10813)
+++ /trunk/psModules/src/astrom/pmAstrometryWCS.c	(revision 10814)
@@ -7,6 +7,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-12-17 09:46:09 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-20 16:37:55 $
  *
  *  Copyright 2006 Institute for Astronomy, University of Hawaii
@@ -442,4 +442,7 @@
     // XXX this needs to perform the full (non-linear) inversion
     // XXX we need to pull the region from the chip metadata
+    // is chip trimsec defined?  do we need to ensure the
+    // XXX should this function be defined for the CELL, not the CHIP?
+    // psRegion region = psMetadataLookupXXX (chip->concepts, "CHIP.TRIMSEC");
     psRegion region = psRegionSet (0, 4000, 0, 4000);
     chip->fromFPA = psPlaneTransformInvert(NULL, toFPA, region, 50);
@@ -632,6 +635,31 @@
 // convert toFPA / toSky components to traditional WCS
 // plateScale is nominal physical scale on tangent plane (microns / arcsecond)
-bool pmAstromWriteBilevelChip (psPlaneTransform *toFPA, psMetadata *header, double plateScale)
-{
+bool pmAstromWriteBilevelChip (psMetadata *header, const pmFPA *fpa, const pmChip *chip, float tol)
+{
+    pmAstromWCS *wcs = pmAstromWCSBilevelChipFromFPA (fpa, chip, tol);
+
+    pmAstromWCStoHeader (header, wcs);
+
+    psFree (wcs);
+    return true;
+}
+
+
+// convert toFPA / toSky components to traditional WCS
+// plateScale is nominal physical scale on tangent plane (microns / arcsecond)
+bool pmAstromWriteBilevelMosaic (psMetadata *header, const pmFPA *fpa, float tol)
+{
+    pmAstromWCS *wcs = pmAstromWCSBilevelMosaicFromFPA (fpa, tol);
+
+    pmAstromWCStoHeader (header, wcs);
+
+    psFree (wcs);
+    return true;
+}
+
+pmAstromWCS *pmAstromWCSBilevelChipFromFPA (pmFPA *fpa, float tol)
+{
+
+    // conv
 
     psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE1", PS_META_REPLACE, "", "RA---WRP");
