Index: trunk/psastro/src/psastroChooseRefstars.c
===================================================================
--- trunk/psastro/src/psastroChooseRefstars.c	(revision 10830)
+++ trunk/psastro/src/psastroChooseRefstars.c	(revision 10855)
@@ -56,4 +56,6 @@
                 psArray *refstars = psArrayAllocEmpty (100);
 
+		FILE *f = fopen ("refstars.dat", "w");
+
                 // select the reference objects within range of this readout
                 // project the reference objects to this chip
@@ -64,4 +66,10 @@
                     psPlaneTransformApply (ref->FP, fpa->fromTPA, ref->TP);
                     psPlaneTransformApply (ref->chip, chip->fromFPA, ref->FP);
+
+		    fprintf (f, "%d  %f %f  %f %f  %f %f  %f %f\n", i,
+			     ref->sky->r, ref->sky->d, 
+			     ref->TP->x, ref->TP->y, 
+			     ref->FP->x, ref->FP->y, 
+			     ref->chip->x, ref->chip->y);
 
                     // limit the X,Y range of the refs to the selected chip
@@ -75,4 +83,5 @@
                     psFree (ref);
                 }
+		fclose (f);
                 psTrace ("psastro", 4, "Added %ld refstars\n", refstars->n);
 
