Index: /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/AstromOffsetMapUtils.c
===================================================================
--- /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/AstromOffsetMapUtils.c	(revision 37681)
+++ /branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/AstromOffsetMapUtils.c	(revision 37682)
@@ -69,4 +69,35 @@
 }
 
+void AstromOffsetMapCopy (AstromOffsetMap *map) {
+
+  if (!map) return;
+
+  AstromOffsetMap *tgt = AstromOffsetMInit (map->Nx, map->Ny);
+
+  tgt->dX = map->dX; 
+  tgt->dY = map->dY; 
+
+  int j, k;
+  for (j = 0; j < tgt->Nx; j++) {
+    for (k = 0; k < map->Ny; k++) {
+      tgt->dXv[j][k] = map->dXv[j][k];
+      tgt->dYv[j][k] = map->dYv[j][k];
+    }
+  }
+
+  int j;
+  for (j = 0; j < map->Nx; j++) {
+    if (map->dXv) free (map->dXv[j]);
+    if (map->dYv) free (map->dYv[j]);
+  }
+
+  free (map->dXv);
+  free (map->dYv);
+
+  free (map);
+
+  return;
+}
+
 void AstromOffsetTableFree (AstromOffsetTable *table) {
 
Index: /branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/CoordOps.c
===================================================================
--- /branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/CoordOps.c	(revision 37681)
+++ /branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/CoordOps.c	(revision 37682)
@@ -7,4 +7,6 @@
 static Coords *oldCoords;   // list of available images
 static off_t  NoldCoords;   // number of available images
+
+AstromOffsetTable *table = NULL;
 
 void initCoords (void) {
@@ -24,4 +26,8 @@
   memset (nPosSum,    0, N*sizeof(off_t));
   memset (isBadCoord, 0, N*sizeof(int));
+
+  // create a table to save tables with their coords
+  table = AstromOffsetTableInit();
+
 }
 
Index: /branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/ImageOps.c
===================================================================
--- /branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/ImageOps.c	(revision 37681)
+++ /branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/ImageOps.c	(revision 37682)
@@ -221,5 +221,5 @@
     }
   }
-  fprintf (stderr, OFF_T_FMT" total images, %d with < 20 measurements, %d with < 15\n", Nimage, Nfew, Nbad);
+  if (MATCHCAT) fprintf (stderr, OFF_T_FMT" total images, %d with < 20 measurements, %d with < 15\n", Nimage, Nfew, Nbad);
 }
 
