Index: /trunk/psLib/src/astronomy/psAstrometry.c
===================================================================
--- /trunk/psLib/src/astronomy/psAstrometry.c	(revision 2989)
+++ /trunk/psLib/src/astronomy/psAstrometry.c	(revision 2990)
@@ -8,6 +8,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-01-13 22:45:28 $
+ *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-01-14 01:13:15 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -362,4 +362,5 @@
         chips[i] = NULL;
     }
+    newFPA->chips->n = 0; // per requirement
 
     newFPA->metadata = NULL;
@@ -467,6 +468,6 @@
     psReadout* readout = psAlloc(sizeof(psReadout));
 
-    *(psU32*)&readout->colBins = 0;
-    *(psU32*)&readout->rowBins = 0;
+    *(psU32*)&readout->colBins = 1;
+    *(psU32*)&readout->rowBins = 1;
     *(psU32*)&readout->rowParity = 0;
     *(psU32*)&readout->colParity = 0;
Index: /trunk/psLib/test/astronomy/tst_psAstrometry01.c
===================================================================
--- /trunk/psLib/test/astronomy/tst_psAstrometry01.c	(revision 2989)
+++ /trunk/psLib/test/astronomy/tst_psAstrometry01.c	(revision 2990)
@@ -5,6 +5,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-01-13 22:45:40 $
+*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-01-14 01:13:15 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -19,7 +19,7 @@
 
 testDescription tests[] = {
-                              {test1, 0000, "Tests psFixedPatternAlloc()", 0, false},
-                              {test2, 0000, "Tests psGrommitAlloc()", 0, false},
-                              {test3, 0000, "MISC", 0, false},
+                              {test1, -1, "Tests psFixedPatternAlloc()", 0, false},
+                              {test2, -2, "Tests psGrommitAlloc()", 0, false},
+                              {test3, -3, "MISC", 0, false},
                               {NULL}
                           };
@@ -136,4 +136,6 @@
 
     chips = (psChip **) myFPA->chips->data;
+    myFPA->chips->n = NUM_CHIPS;
+
     for (i=0;i<NUM_CHIPS;i++) {
         chips[i] = psChipAlloc(NUM_CELLS, myFPA);
@@ -148,4 +150,5 @@
 
         cells = (psCell **) chips[i]->cells->data;
+        chips[i]->cells->n = NUM_CELLS;
 
         for (j=0;j<NUM_CELLS;j++) {
@@ -168,4 +171,6 @@
 
             readouts = (psReadout **) cells[j]->readouts->data;
+            cells[j]->readouts->n = NUM_READOUTS;
+
             for (k=0;k<NUM_READOUTS;k++) {
                 tmpImage = psImageAlloc(READOUT_NUM_COLS, READOUT_NUM_ROWS, PS_TYPE_F32);
@@ -176,5 +181,9 @@
                     }
                 }
-                readouts[k] = psReadoutAlloc((j * (CELL_WIDTH + CELL_GAP)), 0, tmpImage);
+                readouts[k] = psReadoutAlloc();
+                readouts[k]->image = tmpImage;
+                *(psS32*)&readouts[k]->col0 = (j * (CELL_WIDTH + CELL_GAP));
+                *(psS32*)&readouts[k]->row0 = 0;
+
 
             }
@@ -341,5 +350,5 @@
         XXX: Don't know how to verify: latitude, sinLat, cosLat, abberationMag,
              refractA, refractB, longitudeOffset, siderealTime
-     
+
        if (grom-> != ) {
             printf("ERROR: grom-> is %f, should be %f\n", grom->, );
@@ -405,5 +414,5 @@
 coords returned above.
  
-Then, it calls 
+Then, it calls
     psCellInChip()
 and flags an ERROR if the cell it returns is different from that of
