Index: trunk/psModules/src/objects/pmSourceIO.c
===================================================================
--- trunk/psModules/src/objects/pmSourceIO.c	(revision 19087)
+++ trunk/psModules/src/objects/pmSourceIO.c	(revision 19307)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2008-08-16 22:36:18 $
+ *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-09-02 19:06:17 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -845,4 +845,5 @@
 
       case PM_FPA_FILE_CMF:
+      case PM_FPA_FILE_WCS:  // "WCS" is CMF without detected objects
         // read in header, if not yet loaded
         hdu = pmFPAviewThisHDU (view, file->fpa);
@@ -905,13 +906,15 @@
 
         // XXX these are case-sensitive since the EXTYPE is case-sensitive
-        if (!strcmp (exttype, "SMPDATA")) {
-            sources = pmSourcesRead_SMPDATA (file->fits, hdu->header);
-        }
-        if (!strcmp (exttype, "PS1_DEV_0")) {
-            sources = pmSourcesRead_PS1_DEV_0 (file->fits, hdu->header);
-        }
-        if (!strcmp (exttype, "PS1_DEV_1")) {
-            sources = pmSourcesRead_PS1_DEV_1 (file->fits, hdu->header);
-        }
+	if (file->type == PM_FPA_FILE_CMF) {
+	    if (!strcmp (exttype, "SMPDATA")) {
+		sources = pmSourcesRead_SMPDATA (file->fits, hdu->header);
+	    }
+	    if (!strcmp (exttype, "PS1_DEV_0")) {
+		sources = pmSourcesRead_PS1_DEV_0 (file->fits, hdu->header);
+	    }
+	    if (!strcmp (exttype, "PS1_DEV_1")) {
+		sources = pmSourcesRead_PS1_DEV_1 (file->fits, hdu->header);
+	    }
+	}
 
         psTrace("psModules.objects", 6, "read CMF table from %s : %s : %s", file->filename, headname, dataname);
