Index: /trunk/psLib/src/fits/psFits.h
===================================================================
--- /trunk/psLib/src/fits/psFits.h	(revision 15248)
+++ /trunk/psLib/src/fits/psFits.h	(revision 15249)
@@ -4,6 +4,6 @@
  * @author Robert DeSonia, MHPCC
  *
- * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
- * @date $Date: 2007-10-03 21:27:21 $
+ * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
+ * @date $Date: 2007-10-09 03:00:05 $
  * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
  */
@@ -56,5 +56,5 @@
     char *extword;                      ///< user-specified word to name extensions (NULL implies EXTNAME)
     struct {
-        bool compression;               ///< Honour compression convention, handling compressed images
+        bool compression;               ///< Compression convention: handling of compressed images
     } conventions;                      ///< Conventions to honour
 } psFits;
@@ -309,4 +309,10 @@
 }
 
+#define PS_ASSERT_FITS_WRITABLE(NAME, RVAL) \
+if (!(NAME)->writable) { \
+    psError(PS_ERR_UNEXPECTED_NULL, true, "Error: FITS file %s not open for writing.", #NAME); \
+    return RVAL; \
+}
+
 /// @}
 #endif // #ifndef PS_FITS_H
