Index: /branches/eam_branch_20070817/psphot/src/psphotReadoutCleanup.c
===================================================================
--- /branches/eam_branch_20070817/psphot/src/psphotReadoutCleanup.c	(revision 14617)
+++ /branches/eam_branch_20070817/psphot/src/psphotReadoutCleanup.c	(revision 14618)
@@ -57,6 +57,10 @@
     if (psf) {
 	// save the psf for possible output.  if there was already an entry, it was loaded from external sources
-	// the new one may have been updated or modified, so replace the existing entry
-	psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN | PS_META_REPLACE,  "psphot psf", psf);
+	// the new one may have been updated or modified, so replace the existing entry.  We
+	// are required to save it on the chip, but this will cause problems if we ever want to
+	// run psphot on an unmosaiced image
+	pmCell *cell = readout->parent;
+	pmChip *chip = cell->parent;
+	psMetadataAdd (chip->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN | PS_META_REPLACE,  "psphot psf", psf);
     }
 
