Index: /trunk/psastro/src/psastroConvert.c
===================================================================
--- /trunk/psastro/src/psastroConvert.c	(revision 6957)
+++ /trunk/psastro/src/psastroConvert.c	(revision 6958)
@@ -3,5 +3,31 @@
 psArray *pmSourceToAstromObj (psArray *sources) {
 
+    psArray *objects = psArrayAlloc (sources->n);
     
+    for (int i = 0; i < sources->n; i++) {
+	psSource *source = sources->data[i];
+	
+	// only accept the PSF sources?
+	if (source->type != PM_SOURCE_STAR) continue;
 
+	pmModel *model = source->modelPSF;
+	if (model == NULL) continue;
+
+	psF32 *PAR = model->params->data.F32;
+
+	pmAstromObj *obj = pmAstromObjAlloc ();
+
+	// is the source magnitude calibrated in any sense?
+	obj->pix->x = PAR[2];
+	obj->pix->y = PAR[3];
+	obj->Mag = source->psfMag;
+
+	// XXX do we have the information giving the readout and cell offset?
+	// for the moment, assume chip == cell == readout
+	obj->cell = obj->pix;
+	obj->chip = obj->cell;
+	
+	// can we make an initial guess of the astrometry to set FP, TP, and sky coords?
+	
+	
 }
Index: /trunk/psastro/src/psastroDataLoop.c
===================================================================
--- /trunk/psastro/src/psastroDataLoop.c	(revision 6957)
+++ /trunk/psastro/src/psastroDataLoop.c	(revision 6958)
@@ -1,7 +1,9 @@
 # include "psastro.h"
 
-// this loop just loads the data from the input files.
+// this loop loads the data from the input files and selects the
+// brighter stars for astrometry
 // at the end of this function, the complete stellar data is loaded
 // into the correct fpa structure locations (readout.analysis:PSPHOT.SOURCES)
+// 
 // all of the different astrometry analysis modes use the same data load loop
 bool psastroDataLoop (pmConfig *config) {
@@ -46,4 +48,2 @@
 }
 
-// we need to suppress other IO files.  we need a function with toggles the mode/state of the
-// pmFPAfiles so the ones of interest are active.
