Index: trunk/psModules/src/objects/pmSourceIO.c
===================================================================
--- trunk/psModules/src/objects/pmSourceIO.c	(revision 11687)
+++ trunk/psModules/src/objects/pmSourceIO.c	(revision 12398)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-02-07 23:58:17 $
+ *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-03-10 07:03:20 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -298,10 +298,9 @@
             }
 
-            // save psphot and psastro metadata in the image (not table) header
+            // save psphot and psastro metadata in the image and table headers
             updates = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.HEADER");
             if (updates) {
                 psMetadataCopy (outhead, updates);
             }
-
             updates = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.HEADER");
             if (updates) {
@@ -317,4 +316,16 @@
         // create a header to hold the output data
         outhead = psMetadataAlloc ();
+
+	// save psphot and psastro metadata in the image and table headers
+	// XXX this is a bit silly: we are duplicating these because I'm not sure which
+	// I need to keep for multi-readout images...
+	updates = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.HEADER");
+	if (updates) {
+	    psMetadataCopy (outhead, updates);
+	}
+	updates = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.HEADER");
+	if (updates) {
+	    psMetadataCopy (outhead, updates);
+	}
 
         exttype = psStringCopy ("SMPDATA");  // XXX derive this from the recipes
