Index: trunk/psModules/src/camera/pmFPAfileIO.c
===================================================================
--- trunk/psModules/src/camera/pmFPAfileIO.c	(revision 16186)
+++ trunk/psModules/src/camera/pmFPAfileIO.c	(revision 16257)
@@ -390,9 +390,20 @@
     }
 
+    // check if the file is a FITS file (or uses the fits header)
+    bool fitsType = false;
+    fitsType |= (file->type == PM_FPA_FILE_IMAGE);
+    fitsType |= (file->type == PM_FPA_FILE_MASK);
+    fitsType |= (file->type == PM_FPA_FILE_WEIGHT);
+    fitsType |= (file->type == PM_FPA_FILE_HEADER);
+    fitsType |= (file->type == PM_FPA_FILE_FRINGE);
+    fitsType |= (file->type == PM_FPA_FILE_CMP);
+    fitsType |= (file->type == PM_FPA_FILE_CMF);
+    fitsType |= (file->type == PM_FPA_FILE_PSF);
+    fitsType |= (file->type == PM_FPA_FILE_ASTROM);
 
     // Ensure headers and all are updated
     // This is here so that the individual write functions (e.g., images, PSFs, sources, etc) don't have to
     // take care of all this themselves (because they generally don't).
-    {
+    if (fitsType) {
         pmHDU *hdu = pmFPAviewThisHDU(view, file->fpa);
         if (hdu) {
