Index: trunk/ppStack/src/ppStackPhotometry.c
===================================================================
--- trunk/ppStack/src/ppStackPhotometry.c	(revision 16605)
+++ trunk/ppStack/src/ppStackPhotometry.c	(revision 17698)
@@ -15,4 +15,16 @@
     pmFPACopy(photFile->fpa, readout->parent->parent->parent);
 
+    {
+        // Need to ensure aperture residual is not calculated
+        psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PSPHOT_RECIPE); // Recipe
+        psMetadataItem *item = psMetadataLookup(recipe, "MEASURE.APTREND"); // Item determining aptrend
+        if (!item) {
+            psWarning("Unable to find MEASURE.APTREND in psphot recipe");
+            psErrorClear();
+        } else {
+            item->data.B = false;
+        }
+    }
+
     if (!psphotReadout(config, view)) {
         // Clear the error, so that the output files are written.
