Index: trunk/psastro/src/psastroBuildFPA.c
===================================================================
--- trunk/psastro/src/psastroBuildFPA.c	(revision 5506)
+++ trunk/psastro/src/psastroBuildFPA.c	(revision 5509)
@@ -1,5 +1,5 @@
 # include "psastro.h"
 
-pmFPA *psastroBuildFPA (psMetadata *header, psMetadata *config) {
+pmFPA *psastroBuildFPA (psMetadata *header, psArray *stars) {
 
     // this function constructs a basic template pmFPA structure based on the information in the header
@@ -30,6 +30,6 @@
 
 	    pmCell *cell = pmCellAlloc ();
-	    cell->chip = chip; // assign parent chip (view only; don't free)
-	    cell->header = header;
+	    cell->chip = chip;      // assign parent chip (view only; don't free)
+	    cell->header = header;  // XXX EAM : extend this function to take more than header
 
 	    pmCellInterpretWCS (cell, header);
@@ -39,4 +39,6 @@
 
 		pmReadout *readout = pmReadoutAlloc ();
+		readout->stars  = stars;   // XXX EAM : need more than one stars...
+
 		cells->readouts->data[j] = readout;
 	    }
@@ -143,4 +145,6 @@
     // XXX EAM : if fpa->toSky and fpa->toTPA are already defined, then the
     //           toFPA must be modified to match the crval(i), scale(i) and crpix(i)
+    //           scale = scale(i)/scale(0) (i == chip #)
+    //           project crval1(0),crval2(0 using projection
 
     // XXX EAM : psPlaneTransformAlloc uses nTerm not nOrder (bug 581)
