Index: trunk/psModules/src/astrom/pmAstrometryWCS.h
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryWCS.h	(revision 10775)
+++ trunk/psModules/src/astrom/pmAstrometryWCS.h	(revision 10783)
@@ -7,6 +7,6 @@
 *  @author EAM, IfA
 *
-*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-12-16 05:34:54 $
+*  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-12-17 09:46:56 $
 *
 *  Copyright 2006 Institute for Astronomy, University of Hawaii
@@ -29,12 +29,24 @@
 pmAstromWCS;
 
+// read wcs terms from the supplied header into the fpa hierarchy components
+bool pmAstromReadWCS (pmFPA *fpa, pmChip *chip, const psMetadata *header, double plateScale, bool isMosaic);
+
+// write the wcs terms from the fpa hierarchy components into the supplied header
+// tol is the convergence tolerance for the non-linear solution to the reference pixel
+bool pmAstromWriteWCS (psMetadata *header, const pmFPA *fpa, const pmChip *chip, float tol);
+
+// support function for the pmAstromWCS representation
 pmAstromWCS *pmAstromWCSAlloc (int nXorder, int nYorder);
 bool pmAstromWCStoSky (psSphere *sky, pmAstromWCS *wcs, psPlane *chip);
 bool pmAstromWCStoChip (psPlane *chip, pmAstromWCS *wcs, psSphere *sky);
+
+// read and write the pmAstromWCS representation to the header
+bool pmAstromWCStoHeader (psMetadata *header, const pmAstromWCS *wcs);
 pmAstromWCS *pmAstromWCSfromHeader (const psMetadata *header);
-bool pmAstromWCStoHeader (psMetadata *header, const pmAstromWCS *wcs);
 
-bool pmAstromReadWCS (pmFPA *fpa, pmChip *chip, const psMetadata *header, double plateScale, bool isMosaic);
-bool pmAstromWriteWCS (psMetadata *header, const pmFPA *fpa, const pmChip *chip);
+// convert the pmAstromWCS representation to the FPA representation
+bool pmAstromWCStoFPA (pmFPA *fpa, pmChip *chip, const pmAstromWCS *wcs, double plateScale, bool isMosaic);
+pmAstromWCS *pmAstromWCSfromFPA (const pmFPA *fpa, const pmChip *chip, float tol);
+
 bool pmAstromWriteBilevelChip (psPlaneTransform *toFPA, psMetadata *header, double plateScale);
 psMetadata *pmAstromWriteBilevelMosaic (psProjection *toSky, psPlaneDistort *toTP, double plateScale);
