Index: branches/tap_branches/ppSub/src/ppSubReadoutInverse.c
===================================================================
--- branches/tap_branches/ppSub/src/ppSubReadoutInverse.c	(revision 25900)
+++ branches/tap_branches/ppSub/src/ppSubReadoutInverse.c	(revision 27838)
@@ -20,4 +20,5 @@
     invRO->variance = psMemIncrRefCounter(outRO->variance);
     invRO->covariance = psMemIncrRefCounter(outRO->covariance);
+    invRO->analysis = psMetadataCopy(invRO->analysis, outRO->analysis);
 
     invRO->data_exists = invRO->parent->data_exists = invRO->parent->parent->data_exists = true;
@@ -34,10 +35,10 @@
     pmHDU *invHDU = invFPA->hdu;          // Inverse HDU
     if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) {
-        psError(PS_ERR_UNKNOWN, false, "Unable to write WCS astrometry to PPSUB.INVERSE.");
+        psError(psErrorCodeLast(), false, "Unable to write WCS astrometry to PPSUB.INVERSE.");
         return false;
     }
     // Read from newly written astrometry so that it exists in the "inverse" FPA (for sources)
     if (!pmAstromReadWCS(invFPA, invChip, invHDU->header, 1.0)) {
-        psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry.");
+        psError(psErrorCodeLast(), false, "Unable to read WCS astrometry.");
         return false;
     }
