Index: trunk/ppSub/src/ppSubReadout.c
===================================================================
--- trunk/ppSub/src/ppSubReadout.c	(revision 20993)
+++ trunk/ppSub/src/ppSubReadout.c	(revision 21010)
@@ -456,4 +456,18 @@
     outRO->data_exists = outCell->data_exists = outCell->parent->data_exists = true;
 
+    // Copy astrometry over
+    // It should get into the output images and photometry
+    pmFPA *refFPA = refRO->parent->parent->parent; // Reference FPA
+    pmHDU *refHDU = refFPA->hdu;        // Reference HDU
+    if (!outHDU || !refHDU) {
+        psWarning("Unable to find HDU at FPA level to copy astrometry.");
+    } else if (!pmAstromReadWCS(outFPA, outCell->parent, refHDU->header, 1.0)) {
+        psWarning("Unable to read WCS astrometry from reference FPA.");
+        psErrorClear();
+    } else if (!pmAstromWriteWCS(outHDU->header, outFPA, outCell->parent, WCS_TOLERANCE)) {
+        psWarning("Unable to write WCS astrometry to output FPA.");
+        psErrorClear();
+    }
+
 #if 0
     pmReadoutMaskApply(outRO, maskBad);
@@ -538,5 +552,5 @@
         // The PSF should already be stored for the readout
         pmFPAfile *photFile = psMetadataLookupPtr(NULL, config->files, "PSPHOT.INPUT");
-        pmFPACopy(photFile->fpa, outRO->parent->parent->parent);
+        pmFPACopy(photFile->fpa, outFPA);
 
         pmReadout *psfRO = pmFPAfileThisReadout(config->files, view, "PSPHOT.PSF.LOAD");
@@ -663,17 +677,7 @@
     }
 
-    // Copy astrometry over
-    pmFPA *refFPA = refRO->parent->parent->parent; // Reference FPA
-    pmHDU *refHDU = refFPA->hdu;        // Reference HDU
-    if (!outHDU || !refHDU) {
-        psWarning("Unable to find HDU at FPA level to copy astrometry.");
-    } else {
-        if (!pmAstromReadWCS(outFPA, outCell->parent, refHDU->header, 1.0)) {
-            psWarning("Unable to read WCS astrometry from reference FPA.");
-            psErrorClear();
-        } else if (!pmAstromWriteWCS(outHDU->header, outFPA, outCell->parent, WCS_TOLERANCE)) {
-            psWarning("Unable to write WCS astrometry to output FPA.");
-            psErrorClear();
-        }
+    if (!pmAstromWriteWCS(outHDU->header, outFPA, outCell->parent, WCS_TOLERANCE)) {
+        psWarning("Unable to write WCS astrometry to output FPA.");
+        psErrorClear();
     }
 
