Index: trunk/psModules/src/astrom/pmAstrometryObjects.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryObjects.c	(revision 9730)
+++ trunk/psModules/src/astrom/pmAstrometryObjects.c	(revision 10780)
@@ -8,6 +8,6 @@
 *  @author EAM, IfA
 *
-*  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-10-24 22:55:04 $
+*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-12-17 09:45:20 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -193,5 +193,5 @@
 and fit a psPlaneTransform between them
  ******************************************************************************/
-psPlaneTransform *pmAstromMatchFit(
+bool pmAstromMatchFit(
     psPlaneTransform *map,
     psArray *raw,
@@ -201,4 +201,5 @@
     psMetadata *updates)
 {
+    PS_ASSERT_PTR_NON_NULL(map, NULL);
     PS_ASSERT_PTR_NON_NULL(raw, NULL);
     PS_ASSERT_PTR_NON_NULL(ref, NULL);
@@ -209,17 +210,4 @@
     pmAstromObj *rawStar, *refStar;
     pmAstromMatch *pair;
-
-    if (map == NULL) {
-        int nX = psMetadataLookupS32 (&status, config, "PSASTRO.CHIP.NX");
-        if (!status) {
-            nX = 1;
-        }
-        int nY = psMetadataLookupS32 (&status, config, "PSASTRO.CHIP.NY");
-        if (!status) {
-            nY = 1;
-        }
-        map = psPlaneTransformAlloc (nX, nY);
-        // XXX EAM : not clear that we are allowed to use orders > 1
-    }
 
     // XXX EAM : clip fit seems to only work for F32!
