Index: trunk/Ohana/src/getstar/include/dvoImagesAtCoords.h
===================================================================
--- trunk/Ohana/src/getstar/include/dvoImagesAtCoords.h	(revision 31177)
+++ trunk/Ohana/src/getstar/include/dvoImagesAtCoords.h	(revision 31238)
@@ -7,4 +7,5 @@
 
 int       VERBOSE;
+int       LISTCHIPCOORDS;
 
 char OUTPUT[256];
@@ -19,9 +20,15 @@
 
 typedef struct {
+    int     n;
+    double  x;
+    double  y;
+} Match;
+
+typedef struct {
     int     id;
     double  ra;
     double  dec;
     int     Nmatches;
-    int     *matches;
+    Match   *matches;
     int     arrayLength;
 } Point;
Index: trunk/Ohana/src/getstar/src/MatchCoords.c
===================================================================
--- trunk/Ohana/src/getstar/src/MatchCoords.c	(revision 31177)
+++ trunk/Ohana/src/getstar/src/MatchCoords.c	(revision 31238)
@@ -93,10 +93,12 @@
             totalMatches++;
 
-            pt->matches[pt->Nmatches] = i;
+            pt->matches[pt->Nmatches].n = i;
+            pt->matches[pt->Nmatches].x = x;
+            pt->matches[pt->Nmatches].y = y;
             pt->Nmatches ++;
 
             if (pt->Nmatches == pt->arrayLength) {
                 pt->arrayLength += 20;
-                REALLOCATE (pt->matches, int, pt->arrayLength);
+                REALLOCATE (pt->matches, Match, pt->arrayLength);
             }
         }
Index: trunk/Ohana/src/getstar/src/args_coords.c
===================================================================
--- trunk/Ohana/src/getstar/src/args_coords.c	(revision 31177)
+++ trunk/Ohana/src/getstar/src/args_coords.c	(revision 31238)
@@ -41,4 +41,9 @@
 
   /* check for command line options */
+  LISTCHIPCOORDS = FALSE;
+  if ((N = get_argument (argc, argv, "-listchipcoords"))) {
+    LISTCHIPCOORDS = TRUE;
+    remove_argument (N, &argc, argv);
+  }
   WITH_PHU = FALSE;
   if ((N = get_argument (argc, argv, "+phu"))) {
Index: trunk/Ohana/src/getstar/src/dvoImagesAtCoords.c
===================================================================
--- trunk/Ohana/src/getstar/src/dvoImagesAtCoords.c	(revision 31177)
+++ trunk/Ohana/src/getstar/src/dvoImagesAtCoords.c	(revision 31238)
@@ -91,5 +91,5 @@
     while ((Nread = fscanf(f, "%d %lf %lf\n", &pts[Npoints].id, &pts[Npoints].ra, &pts[Npoints].dec)) == 3) {
         pts[Npoints].Nmatches = 0;
-        ALLOCATE(pts[Npoints].matches, int, 20);
+        ALLOCATE(pts[Npoints].matches, Match, 20);
         pts[Npoints].arrayLength = 20;
 
@@ -118,5 +118,5 @@
     pts[0].dec = dec;
     pts[0].Nmatches = 0;
-    ALLOCATE(pts[0].matches, int, 20);
+    ALLOCATE(pts[0].matches, Match, 20);
     pts[0].arrayLength = 20;
 
@@ -133,5 +133,7 @@
       Point *pt = points + j;
       for (i = 0; i < pt->Nmatches; i++) {
-        int N = pt->matches[i];
+        int N = pt->matches[i].n;
+        double x = pt->matches[i].x;
+        double y = pt->matches[i].y;
 
         char *name;
@@ -150,5 +152,9 @@
             name = dbImages[N].name;
         }
-        fprintf (stdout, "%d %lf %lf %s\n", pt->id, pt->ra, pt->dec, name);
+        if (LISTCHIPCOORDS) {
+            fprintf (stdout, "%d %lf %lf %s %8.2lf %8.2lf\n", pt->id, pt->ra, pt->dec, name, x, y);
+        } else {
+            fprintf (stdout, "%d %lf %lf %s\n", pt->id, pt->ra, pt->dec, name);
+        }
         if  (copy) {
             free(copy);
