Index: /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/ImageOps.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/ImageOps.c	(revision 33398)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/ImageOps.c	(revision 33399)
@@ -338,5 +338,5 @@
 
   if (image[i].flags & IMAGE_BAD) return (1000);  
-  distance = image[i].dummy3; // XXX dummy3 == ubercalDist
+  distance = image[i].ubercalDist; // was dummy3 in structure
   return (distance);
 }
@@ -413,5 +413,5 @@
     // we optionally do not recalibrate images with UBERCAL zero points 
     if (image[i].flags & ID_IMAGE_PHOTOM_UBERCAL) {
-      image[i].dummy3 = 0; // dummy3 = ubercalDist
+      image[i].ubercalDist = 0; // was dummy3
       if (KEEP_UBERCAL) continue;
     }
@@ -515,5 +515,5 @@
     // minUbercalDist calculated here is the min value for any star owned by this image
     // since this particular image is tied to that star, bump its distance by 1
-    image[i].dummy3 = minUbercalDist + 1;
+    image[i].ubercalDist = minUbercalDist + 1;
   }
   free (list);
Index: /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/MosaicOps.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/MosaicOps.c	(revision 33398)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/MosaicOps.c	(revision 33399)
@@ -440,6 +440,6 @@
       for (j = 0; j < MosaicN_Image[i]; j++) {
 	off_t im = MosaicToImage[i][j];
-	image[im].dummy3 = mosaic[i].ubercalDist;
-	fprintf (stderr, "%d %d %d\n", (int) i, (int) im, image[im].dummy3);
+	image[im].ubercalDist = mosaic[i].ubercalDist;
+	fprintf (stderr, "%d %d %d\n", (int) i, (int) im, image[im].ubercalDist);
       }
       if (KEEP_UBERCAL) continue;
@@ -546,6 +546,6 @@
     for (j = 0; j < MosaicN_Image[i]; j++) {
       off_t im = MosaicToImage[i][j];
-      image[im].dummy3 = mosaic[i].ubercalDist;
-      fprintf (stderr, "%d %d %d\n", (int) i, (int) im, image[im].dummy3);
+      image[im].ubercalDist = mosaic[i].ubercalDist;
+      fprintf (stderr, "%d %d %d\n", (int) i, (int) im, image[im].ubercalDist);
     }
   }
Index: /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/select_images.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/select_images.c	(revision 33398)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/select_images.c	(revision 33399)
@@ -245,5 +245,5 @@
       }
       image[nimage].flags &= ~ID_IMAGE_PHOTOM_POOR;
-      image[nimage].dummy3 = 1000; // dummy3 == ubercalDist
+      image[nimage].ubercalDist = 1000; // dummy3 == ubercalDist
     }
     line_number[nimage] = i;
