Index: trunk/psLib/src/fits/psFitsHeader.c
===================================================================
--- trunk/psLib/src/fits/psFitsHeader.c	(revision 18421)
+++ trunk/psLib/src/fits/psFitsHeader.c	(revision 18869)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2008-07-04 03:18:06 $
+ *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-08-02 02:50:41 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -47,5 +47,5 @@
 // List of FITS header keys not to write (handled by cfitsio); NULL-terminated
 static const char *noWriteFitsKeys[] = { "SIMPLE", "XTENSION", "BITPIX", "NAXIS", "EXTNAME", "BSCALE",
-                                         "BZERO", "TFIELDS", "PCOUNT", "GCOUNT", "PSBITPIX", NULL };
+                                         "BZERO", "TFIELDS", "PCOUNT", "GCOUNT", "PSBITPIX", "BLANK", NULL };
 
 // List of the start of FITS header keys not to write (handled by cfitsio); NULL-terminated
@@ -53,5 +53,6 @@
 
 // List of compressed FITS header keys not to write (handled by cfitsio); NULL-terminated
-static const char *noWriteCompressedKeys[] = { "ZBITPIX", "ZIMAGE", "ZBITPIX", "ZCMPTYPE", NULL };
+static const char *noWriteCompressedKeys[] = { "ZBITPIX", "ZIMAGE", "ZBITPIX", "ZCMPTYPE", "ZSIMPLE",
+                                               "ZEXTEND", "ZBLANK", NULL };
 
 // List of the start of FITS header keys not to write (handled by cfitsio); NULL-terminated
@@ -555,6 +556,5 @@
 
             // Options for compression
-            if (compress != PS_FITS_COMPRESS_NONE &&
-                (!fits->options || fits->options->conventions.compression)) {
+            if (!fits->options || fits->options->conventions.compression) {
                 // Check to see if the keyword should be translated
                 name = (char*)keywordUntranslate(name, compressTranslation); // Casting away const for cfitsio
