Index: trunk/Ohana/src/relphot/include/relphot.h
===================================================================
--- trunk/Ohana/src/relphot/include/relphot.h	(revision 34641)
+++ trunk/Ohana/src/relphot/include/relphot.h	(revision 34642)
@@ -137,4 +137,5 @@
 int    NGRID;
 int    RESET;
+int    RESET_ZEROPTS;
 int    UPDATE;
 int    SAVE_IMAGE_UPDATES;
Index: trunk/Ohana/src/relphot/src/args.c
===================================================================
--- trunk/Ohana/src/relphot/src/args.c	(revision 34641)
+++ trunk/Ohana/src/relphot/src/args.c	(revision 34642)
@@ -163,4 +163,10 @@
   }
 
+  RESET_ZEROPTS = FALSE;
+  if ((N = get_argument (argc, argv, "-reset-zpts"))) {
+    remove_argument (N, &argc, argv);
+    RESET_ZEROPTS = TRUE;
+  }
+
   UPDATE = FALSE;
   if ((N = get_argument (argc, argv, "-update"))) {
@@ -418,4 +424,10 @@
     remove_argument (N, &argc, argv);
     RESET = TRUE;
+  }
+
+  RESET_ZEROPTS = FALSE;
+  if ((N = get_argument (argc, argv, "-reset-zpts"))) {
+    remove_argument (N, &argc, argv);
+    RESET_ZEROPTS = TRUE;
   }
 
Index: trunk/Ohana/src/relphot/src/load_catalogs.c
===================================================================
--- trunk/Ohana/src/relphot/src/load_catalogs.c	(revision 34641)
+++ trunk/Ohana/src/relphot/src/load_catalogs.c	(revision 34642)
@@ -134,4 +134,5 @@
     // KEEP_UBERCAL
     // RESET (-reset)
+    // RESET_ZEROPTS (-reset-zpts)
     // TimeSelect -time
     // DophotSelect
@@ -150,4 +151,5 @@
     if (VERBOSE2)      { snprintf (tmpline, 1024, "%s -vv",             command); 		     strcpy (command, tmpline); }
     if (RESET)         { snprintf (tmpline, 1024, "%s -reset",          command); 		     strcpy (command, tmpline); }
+    if (RESET_ZEROPTS) { snprintf (tmpline, 1024, "%s -reset-zpts",     command); 		     strcpy (command, tmpline); }
     if (!KEEP_UBERCAL) { snprintf (tmpline, 1024, "%s -reset-ubercal",  command); 		     strcpy (command, tmpline); }
     if (DophotSelect)  { snprintf (tmpline, 1024, "%s -dophot %d",      command, DophotValue);       strcpy (command, tmpline); }
Index: trunk/Ohana/src/relphot/src/reload_catalogs.c
===================================================================
--- trunk/Ohana/src/relphot/src/reload_catalogs.c	(revision 34641)
+++ trunk/Ohana/src/relphot/src/reload_catalogs.c	(revision 34642)
@@ -172,4 +172,5 @@
     // VERBOSE, VERBOSE2
     // RESET
+    // RESET_ZEROPTS
     // TimeSelect
     // AreaSelect
@@ -182,4 +183,5 @@
     if (VERBOSE2)         { snprintf (tmpline, 1024, "%s -vv",          	command); 		     			  strcpy (command, tmpline); }
     if (RESET)            { snprintf (tmpline, 1024, "%s -reset",       	command); 		     			  strcpy (command, tmpline); }
+    if (RESET_ZEROPTS)    { snprintf (tmpline, 1024, "%s -reset-zpts",       	command); 		     			  strcpy (command, tmpline); }
     if (UPDATE)           { snprintf (tmpline, 1024, "%s -update",       	command); 		     			  strcpy (command, tmpline); }
     if (!KEEP_UBERCAL)    { snprintf (tmpline, 1024, "%s -reset-ubercal",	command); 		                          strcpy (command, tmpline); }
Index: trunk/Ohana/src/relphot/src/relphot_objects.c
===================================================================
--- trunk/Ohana/src/relphot/src/relphot_objects.c	(revision 34641)
+++ trunk/Ohana/src/relphot/src/relphot_objects.c	(revision 34642)
@@ -162,4 +162,5 @@
     if (VERBOSE2)      { snprintf (tmpline, 1024, "%s -vv",             command); 		     strcpy (command, tmpline); }
     if (RESET)         { snprintf (tmpline, 1024, "%s -reset",          command); 		     strcpy (command, tmpline); }
+    if (RESET_ZEROPTS) { snprintf (tmpline, 1024, "%s -reset-zpts",     command); 		     strcpy (command, tmpline); }
     if (UPDATE)        { snprintf (tmpline, 1024, "%s -update",         command); 		     strcpy (command, tmpline); }
     if (!KEEP_UBERCAL) { snprintf (tmpline, 1024, "%s -reset-ubercal",  command); 		     strcpy (command, tmpline); }
Index: trunk/Ohana/src/relphot/src/select_images.c
===================================================================
--- trunk/Ohana/src/relphot/src/select_images.c	(revision 34641)
+++ trunk/Ohana/src/relphot/src/select_images.c	(revision 34642)
@@ -256,8 +256,10 @@
     }
     if (RESET) {
-      if (!KEEP_UBERCAL || !(image[nimage].flags & ID_IMAGE_PHOTOM_UBERCAL)) {
-	image[nimage].Mcal = 0.0;
-	image[nimage].dMcal = NAN;
-	image[nimage].flags &= ~ID_IMAGE_PHOTOM_UBERCAL;
+      if (RESET_ZEROPTS) {
+	if (!KEEP_UBERCAL || !(image[nimage].flags & ID_IMAGE_PHOTOM_UBERCAL)) {
+	  image[nimage].Mcal = 0.0;
+	  image[nimage].dMcal = NAN;
+	  image[nimage].flags &= ~ID_IMAGE_PHOTOM_UBERCAL;
+	}
       }
       image[nimage].flags &= ~ID_IMAGE_PHOTOM_POOR;
Index: trunk/Ohana/src/relphot/src/setMrelFinal.c
===================================================================
--- trunk/Ohana/src/relphot/src/setMrelFinal.c	(revision 34641)
+++ trunk/Ohana/src/relphot/src/setMrelFinal.c	(revision 34642)
@@ -75,5 +75,5 @@
 	    } 
 	  } else {
-	    if (getImageEntry (m, 0) >= 0) {
+	    if (RESET_ZEROPTS && (getImageEntry (m, 0) >= 0)) {
 	      catalog[0].measure[m].Mcal = 0.0;
 	    }
