Index: /trunk/psModules/src/camera/pmFPAExtent.c
===================================================================
--- /trunk/psModules/src/camera/pmFPAExtent.c	(revision 12519)
+++ /trunk/psModules/src/camera/pmFPAExtent.c	(revision 12520)
@@ -4,4 +4,5 @@
 #include "pmFPA.h"
 
+// return cell pixels bounding the readout
 psRegion *pmReadoutExtent(const pmReadout *readout)
 {
@@ -30,5 +31,5 @@
 }
 
-
+// return chip pixels bounding the cell (all readouts)
 psRegion *pmCellExtent(const pmCell *cell)
 {
@@ -69,10 +70,10 @@
 }
 
-
-psRegion *pmChipExtent(const pmChip *chip)
+// return chip pixels included in all cells
+psRegion *pmChipPixels(const pmChip *chip)
 {
     PS_ASSERT_PTR_NON_NULL(chip, NULL);
 
-    psArray *cells = chip->cells;       // Arrya of component cells
+    psArray *cells = chip->cells;       // Array of component cells
     psRegion *chipExtent = psRegionAlloc(INFINITY, 0, INFINITY, 0); // Extent of chip
     for (long i = 0; i < cells->n; i++) {
@@ -85,4 +86,17 @@
         psFree(cellExtent);
     }
+
+    return chipExtent;
+}
+
+// return pixels in basic FPA grid bounded by chip
+// this FPA grid has 0,0 at the 0,0 corner of one chip, and is NOT the same
+// as the astrometry focal plane coordinate system
+psRegion *pmChipExtent(const pmChip *chip)
+{
+    PS_ASSERT_PTR_NON_NULL(chip, NULL);
+
+    psRegion *chipExtent = pmChipPixels(chip);
+    if (!chipExtent) return NULL;
 
     bool mdok;                          // Status of MD lookup
@@ -108,10 +122,12 @@
 }
 
-
-psRegion *pmFPAExtent(const pmFPA *fpa)
+// return FPA pixels included in all chips
+// this FPA grid has 0,0 at the 0,0 corner of one chip, and is NOT the same
+// as the astrometry focal plane coordinate system
+psRegion *pmFPAPixels(const pmFPA *fpa)
 {
     PS_ASSERT_PTR_NON_NULL(fpa, NULL);
 
-    psArray *chips = fpa->chips;       // Arrya of component chips
+    psArray *chips = fpa->chips;       // Array of component chips
     psRegion *fpaExtent = psRegionAlloc(INFINITY, 0, INFINITY, 0); // Extent of fpa
     for (long i = 0; i < chips->n; i++) {
Index: /trunk/psModules/src/camera/pmFPAExtent.h
===================================================================
--- /trunk/psModules/src/camera/pmFPAExtent.h	(revision 12519)
+++ /trunk/psModules/src/camera/pmFPAExtent.h	(revision 12520)
@@ -3,6 +3,6 @@
  * @author Paul Price, IfA
  *
- * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
- * @date $Date: 2007-01-24 02:54:14 $
+ * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
+ * @date $Date: 2007-03-21 22:01:32 $
  * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
  */
@@ -26,4 +26,7 @@
                       );
 
+// return chip pixels included in all cells
+psRegion *pmChipPixels(const pmChip *chip);
+
 /// Return the extent of a chip
 ///
@@ -31,4 +34,9 @@
 psRegion *pmChipExtent(const pmChip *chip ///< The chip of interest
                       );
+
+// return FPA pixels included in all chips
+// this FPA grid has 0,0 at the 0,0 corner of one chip, and is NOT the same
+// as the astrometry focal plane coordinate system
+psRegion *pmFPAPixels(const pmFPA *fpa);
 
 /// Return the extent of an FPA
Index: /trunk/psModules/src/camera/pmFPAfileDefine.c
===================================================================
--- /trunk/psModules/src/camera/pmFPAfileDefine.c	(revision 12519)
+++ /trunk/psModules/src/camera/pmFPAfileDefine.c	(revision 12520)
@@ -332,5 +332,4 @@
     // adjust the rules to identify these files in the file->names data
     psFree (file->filerule);
-    // XXX DROP ME: psFree (file->filesrc);
     file->filerule = psStringCopy ("@FILES");
     file->filesrc = psStringCopy ("{CHIP.NAME}.{CELL.NAME}");
