Index: /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/AstromOffsetMapOps.c
===================================================================
--- /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/AstromOffsetMapOps.c	(revision 37741)
+++ /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/AstromOffsetMapOps.c	(revision 37742)
@@ -408,6 +408,6 @@
 
     // bin for this point
-    ix = MAX(0, MIN(Nx, (int)(x[i] * map->dX)));
-    iy = MAX(0, MIN(Ny, (int)(y[i] * map->dY)));
+    ix = MAX(0, MIN(Nx-1, (int)(x[i] * map->dX)));
+    iy = MAX(0, MIN(Ny-1, (int)(y[i] * map->dY)));
     int I = ix + Nx * iy;
 
Index: /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/dvo_catalog.c
===================================================================
--- /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/dvo_catalog.c	(revision 37741)
+++ /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/dvo_catalog.c	(revision 37742)
@@ -639,4 +639,5 @@
   }
   
+  // NOTE: this only check if we can write a backup; it does not actually write the backup
   if (!check_file_access (catalog[0].filename, BACKUP, READWRITE, VERBOSE)) {
     fprintf (stderr, "no permission to access %s\n", catalog[0].filename);
