Index: trunk/psastro/src/psastroConvert.c
===================================================================
--- trunk/psastro/src/psastroConvert.c	(revision 6176)
+++ 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?
+	
+	
 }
