Index: /branches/rel10_ifa/psModules/src/astrom/pmFPAfile.c
===================================================================
--- /branches/rel10_ifa/psModules/src/astrom/pmFPAfile.c	(revision 6754)
+++ /branches/rel10_ifa/psModules/src/astrom/pmFPAfile.c	(revision 6755)
@@ -453,4 +453,6 @@
 }
 
+// select the readout from the named pmFPAfile; if the named file does not exist,
+// create an image of the requested dimensions (save this image and file?)
 psImage *pmFPAfileReadoutImage (psMetadata *files, const pmFPAview *view, char *name, int Nx, int Ny, int type)
 {
@@ -459,6 +461,6 @@
 
     // I want an image from the
-    pmFPA *fpa = psMetadataLookupPtr (&status, files, name);
-    if (fpa == NULL) {
+    pmFPAfile *file = psMetadataLookupPtr (&status, files, name);
+    if (file == NULL) {
         // use Nx or Ny == 0 to avoid creating an image
         if (Nx*Ny <= 0) {
@@ -469,6 +471,10 @@
     }
 
+    // make an fpa consistent with this view
+    // save the image in the fpa
+    // save the fpa in the file
+
     // inconsistent result: return NULL
-    pmReadout *readout = pmFPAviewThisReadout (view, fpa);
+    pmReadout *readout = pmFPAviewThisReadout (view, file->fpa);
     if (readout == NULL) {
         return NULL;
