Index: /trunk/psLib/src/fits/psFitsImage.c
===================================================================
--- /trunk/psLib/src/fits/psFitsImage.c	(revision 15908)
+++ /trunk/psLib/src/fits/psFitsImage.c	(revision 15909)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-11-16 01:04:56 $
+ *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-12-24 21:00:55 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -241,4 +241,6 @@
 }
 
+# if (0)
+// XXX this needs to be optional (eg, invalid for a mask)
 // Apply the BSCALE and BZERO for an image with a "fuzz"
 // The idea is that the "fuzz" (adding a random number between 0 and 1) preserves the expectation value of
@@ -331,7 +333,8 @@
     return out;
 }
-
-
-
+# endif
+
+# if (0)
+// XXX supporting code needs to make this an optional operation
 // Determine BSCALE and BZERO for an image, and generate a new image with it applied
 // TRUE = BZERO + BSCALE * FITS
@@ -411,5 +414,5 @@
     return scaleImageWrite(image, bitpix, *bscale, *bzero, rng);
 }
-
+# endif
 
 #if 0
@@ -530,4 +533,6 @@
 
     // Quantise floating-point images
+    // XXX this needs to be more controlled: certainly not valid for output masks!
+    # if (0)
     if (PS_IS_PSELEMTYPE_REAL(image->type.type) && fits->bitpix > 0) {
         if (newScaleZero) {
@@ -553,4 +558,5 @@
         return scaleImageWrite((psImage*)image, fits->bitpix, *bscale, *bzero, rng);
     }
+    # endif
 
     // Choose the appropriate output type, given the input type and desired bits per pixel
