Index: trunk/psphot/src/psphotReadoutFindPSF.c
===================================================================
--- trunk/psphot/src/psphotReadoutFindPSF.c	(revision 23349)
+++ trunk/psphot/src/psphotReadoutFindPSF.c	(revision 23442)
@@ -11,4 +11,10 @@
     if (!recipe) {
         psError(PSPHOT_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE);
+        return false;
+    }
+
+    // set the photcode for this image
+    if (!psphotAddPhotcode(recipe, config, view, "PSPHOT.INPUT")) {
+        psError(PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
         return false;
     }
Index: trunk/psphot/src/psphotReadoutKnownSources.c
===================================================================
--- trunk/psphot/src/psphotReadoutKnownSources.c	(revision 23349)
+++ trunk/psphot/src/psphotReadoutKnownSources.c	(revision 23442)
@@ -11,4 +11,10 @@
     if (!recipe) {
         psError(PSPHOT_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE);
+        return false;
+    }
+
+    // set the photcode for this image
+    if (!psphotAddPhotcode(recipe, config, view, "PSPHOT.INPUT")) {
+        psError(PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
         return false;
     }
Index: trunk/psphot/src/psphotReadoutMinimal.c
===================================================================
--- trunk/psphot/src/psphotReadoutMinimal.c	(revision 23349)
+++ trunk/psphot/src/psphotReadoutMinimal.c	(revision 23442)
@@ -19,4 +19,10 @@
     if (!recipe) {
         psError(PSPHOT_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE);
+        return false;
+    }
+
+    // set the photcode for this image
+    if (!psphotAddPhotcode(recipe, config, view, "PSPHOT.INPUT")) {
+        psError(PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
         return false;
     }
