Index: trunk/psModules/src/objects/pmPSF_IO.c
===================================================================
--- trunk/psModules/src/objects/pmPSF_IO.c	(revision 14652)
+++ trunk/psModules/src/objects/pmPSF_IO.c	(revision 14936)
@@ -6,6 +6,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-08-24 00:11:02 $
+ *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-09-21 00:05:57 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -40,4 +40,5 @@
 #include "pmGrowthCurve.h"
 #include "pmResiduals.h"
+#include "pmTrend2D.h"
 #include "pmPSF.h"
 #include "pmModel.h"
@@ -354,5 +355,5 @@
 
     // XXX save the growth curve
-    // XXX save the ApResid fit
+    // XXX save ApTrend (as image?)
 
 # if (0)
@@ -636,5 +637,8 @@
         psPolynomial2DtoMetadata (metadata, poly, "PSF_PAR%02d", i);
     }
-    psPolynomial4DtoMetadata (metadata, psf->ApTrend, "APTREND");
+
+    // XXX fix this
+    psWarning ("APTREND is currently missing");
+    // psPolynomial4DtoMetadata (metadata, psf->ApTrend, "APTREND");
 
     psMetadataAdd (metadata, PS_LIST_TAIL, "PSF_AP_RESID", PS_DATA_F32, "aperture residual", psf->ApResid);
@@ -681,4 +685,9 @@
         psf->params->data[i] = poly;
     }
+
+    // load the APTREND data
+    // XXX fix this to work with pmTrend2D
+    psWarning ("APTREND is not being read");
+    # if (0)
     sprintf (keyword, "APTREND");
     psMetadata *folder = psMetadataLookupPtr (&status, metadata, keyword);
@@ -686,4 +695,5 @@
     psFree (psf->ApTrend);
     psf->ApTrend = poly;
+    # endif
 
     psf->ApResid = psMetadataLookupF32 (&status, metadata, "PSF_AP_RESID");
