Index: /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/include/setphot.h
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/include/setphot.h	(revision 33470)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/include/setphot.h	(revision 33471)
@@ -33,4 +33,5 @@
 int          PARALLEL_MANUAL;
 int          PARALLEL_SERIAL;
+int          IMAGES_ONLY;
 
 /***** prototypes ****/
Index: /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/initialize_setphot.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/initialize_setphot.c	(revision 33470)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/initialize_setphot.c	(revision 33471)
@@ -37,4 +37,10 @@
   if ((N = get_argument (argc, argv, "-v"))) {
     VERBOSE = TRUE;
+    remove_argument (N, &argc, argv);
+  }
+
+  IMAGES_ONLY = FALSE;
+  if ((N = get_argument (argc, argv, "-images-only"))) {
+    IMAGES_ONLY = TRUE;
     remove_argument (N, &argc, argv);
   }
Index: /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/setphot.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/setphot.c	(revision 33470)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/setphot.c	(revision 33471)
@@ -42,5 +42,7 @@
   } 
 
-  update_dvo_setphot (image, Nimage, &flatcorrTable);
+  if (!IMAGES_ONLY) {
+    update_dvo_setphot (image, Nimage, &flatcorrTable);
+  }
 
   // write image table
Index: /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/update_dvo_setphot.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/update_dvo_setphot.c	(revision 33470)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/update_dvo_setphot.c	(revision 33471)
@@ -16,5 +16,5 @@
   if (PARALLEL && !HOST_ID) {
     update_dvo_setphot_parallel (sky, image, Nimage);
-    exit (0);
+    return TRUE;
   }
 
