Index: trunk/psModules/src/astrom/Makefile.am
===================================================================
--- trunk/psModules/src/astrom/Makefile.am	(revision 5739)
+++ trunk/psModules/src/astrom/Makefile.am	(revision 6205)
@@ -5,8 +5,10 @@
 libpsmoduleastrom_la_SOURCES  = \
     pmAstrometry.c \
+    pmFPAConstruct.c \
     pmAstrometryObjects.c
 
 psmoduleincludedir = $(includedir)
 psmoduleinclude_HEADERS = \
-  pmAstrometry.h \
-  pmAstrometryObjects.h
+    pmAstrometry.h \
+    pmFPAConstruct.h \
+    pmAstrometryObjects.h
Index: trunk/psModules/src/astrom/pmAstrometry.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometry.c	(revision 5739)
+++ trunk/psModules/src/astrom/pmAstrometry.c	(revision 6205)
@@ -13,6 +13,6 @@
 * XXX: Should we implement non-linear cell->chip transforms?
 * 
-*  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-12-08 00:00:57 $
+*  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-01-26 21:10:50 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -101,5 +101,5 @@
         psFree(cell->readouts);
         psFree(cell->parent);
-        psFree(cell->private);
+        psFree(cell->hdu);
     }
 }
@@ -125,5 +125,5 @@
         psFree(chip->cells);
         psFree(chip->parent);
-        psFree(chip->private);
+        psFree(chip->hdu);
     }
 }
@@ -151,5 +151,5 @@
         }
         psFree(fpa->chips);
-        psFree(fpa->private);
+        psFree(fpa->hdu);
         psFree(fpa->phu);
     }
@@ -204,5 +204,5 @@
     }
     tmpCell->valid = false;
-    tmpCell->private = NULL;
+    tmpCell->hdu = NULL;
 
     psMemSetDeallocator(tmpCell, (psFreeFunc) cellFree);
@@ -233,5 +233,5 @@
     }
     tmpChip->valid = false;
-    tmpChip->private = NULL;
+    tmpChip->hdu = NULL;
 
     psMemSetDeallocator(tmpChip, (psFreeFunc) chipFree);
@@ -250,5 +250,5 @@
     tmpFPA->camera = camera;
     tmpFPA->chips = psArrayAlloc(0);
-    tmpFPA->private = NULL;
+    tmpFPA->hdu = NULL;
     tmpFPA->phu = NULL;
 
@@ -873,2 +873,3 @@
     return(numChips);
 }
+
Index: trunk/psModules/src/astrom/pmAstrometry.h
===================================================================
--- trunk/psModules/src/astrom/pmAstrometry.h	(revision 5739)
+++ trunk/psModules/src/astrom/pmAstrometry.h	(revision 6205)
@@ -8,6 +8,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-12-08 00:00:57 $
+*  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-01-26 21:10:50 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -34,4 +34,7 @@
 }
 p_pmHDU;
+
+p_pmHDU *pmHDUAlloc();
+void *pmHDUFree(p_pmHDU *hdu);
 
 /** Focal plane data structure
@@ -62,5 +65,5 @@
     const psMetadata *camera;           ///< Camera configuration
     psArray *chips;                     ///< The chips
-    p_pmHDU *private;                   ///< FITS data
+    p_pmHDU *hdu;                       ///< FITS data
     psMetadata *phu;                    ///< Primary Header
 }
@@ -95,5 +98,5 @@
     pmFPA *parent;                      ///< Parent FPA
     bool valid;                         ///< Do we bother about reading and working with this chip?
-    p_pmHDU *private;                   ///< FITS data
+    p_pmHDU *hdu;                       ///< FITS data
 }
 pmChip;
@@ -124,5 +127,5 @@
     pmChip *parent;                     ///< Parent chip
     bool valid;                         ///< Do we bother about reading and working with this cell?
-    p_pmHDU *private;                   ///< FITS data
+    p_pmHDU *hdu;                       ///< FITS data
 }
 pmCell;
@@ -436,4 +439,5 @@
 );
 
+
 /**
  * 
@@ -451,4 +455,19 @@
 
 
+/**
+ * 
+ * pmFPAConstruct shall construct a focal plane hierarchy from a camera
+ * configuration. A db handle is also provided so that may be set in the pmFPA.
+ * The resultant pmFPA and its lower-down components shall be ready for to read a
+ * FITS file into it by setting the extname pointers at the appropriate levels to
+ * the appropriate FITS extension name.
+ *  
+ */
+pmFPA *pmFPAConstruct(
+    const psMetadata *camera,
+    psDB *db
+);
+
+
 #endif // #ifndef PS_ASTROMETRY_H
 
Index: trunk/psModules/src/astrom/pmAstrometryObjects.h
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryObjects.h	(revision 5739)
+++ trunk/psModules/src/astrom/pmAstrometryObjects.h	(revision 6205)
@@ -8,6 +8,6 @@
 *  @author EAM, IfA
 *
-*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-12-05 20:49:30 $
+*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-01-26 21:10:50 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -183,6 +183,4 @@
  * the GRID.*.ANGLE entries (they will be ignored).
  * 
- * XXX: This function name is different in the SDRS.
- * 
  */
 /* in pmAstromGrid.c */
