Index: /trunk/psLib/src/fits/psFitsHeader.c
===================================================================
--- /trunk/psLib/src/fits/psFitsHeader.c	(revision 7231)
+++ /trunk/psLib/src/fits/psFitsHeader.c	(revision 7232)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-05-27 01:49:22 $
+ *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-05-27 01:59:36 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -219,6 +219,6 @@
 
 
-bool psFitsWriteHeader(psMetadata *output, // Metadata that is to be output into the FITS file
-                       psFits *fits     // The FITS file handle
+bool psFitsWriteHeader(psFits *fits,     // The FITS file handle
+                       psMetadata *output // Metadata that is to be output into the FITS file
                       )
 {
@@ -312,6 +312,7 @@
 }
 
-bool psFitsWriteBlank(psMetadata* output,
-                      psFits* fits)
+bool psFitsWriteBlank(psFits* fits,
+                      psMetadata* output
+                     )
 {
     if (!fits) {
Index: /trunk/psLib/src/fits/psFitsHeader.h
===================================================================
--- /trunk/psLib/src/fits/psFitsHeader.h	(revision 7231)
+++ /trunk/psLib/src/fits/psFitsHeader.h	(revision 7232)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-05-27 01:49:22 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-05-27 01:59:36 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -47,6 +47,6 @@
  */
 bool psFitsWriteHeader(
-    psMetadata* output,                 ///< the psMetadata data in which to write
-    psFits* fits                        ///< the psFits object
+    psFits* fits,                       ///< the psFits object
+    psMetadata* output                  ///< the psMetadata data in which to write
 );
 
@@ -56,6 +56,6 @@
  */
 bool psFitsWriteBlank(
-    psMetadata* output,                 ///< the psMetadata data in which to write
-    psFits* fits                        ///< the psFits object
+    psFits* fits,                       ///< the psFits object
+    psMetadata* output                  ///< the psMetadata data in which to write
 );
 
Index: /trunk/psLib/src/fits/psFitsImage.c
===================================================================
--- /trunk/psLib/src/fits/psFitsImage.c	(revision 7231)
+++ /trunk/psLib/src/fits/psFitsImage.c	(revision 7232)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-05-27 01:49:22 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-05-27 01:59:36 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -348,5 +348,5 @@
     }
 
-    if (header && !psFitsWriteHeader(header, fits)) {
+    if (header && !psFitsWriteHeader(fits, header)) {
         psError(PS_ERR_IO, false, "Unable to write FITS header.\n");
         return false;
Index: /trunk/psLib/src/fits/psFitsTable.c
===================================================================
--- /trunk/psLib/src/fits/psFitsTable.c	(revision 7231)
+++ /trunk/psLib/src/fits/psFitsTable.c	(revision 7232)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-05-27 01:50:33 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-05-27 01:59:36 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -732,5 +732,5 @@
 
     // Write header
-    if (header && !psFitsWriteHeader(header, fits)) {
+    if (header && !psFitsWriteHeader(fits, header)) {
         psError(PS_ERR_IO, false, "Unable to write FITS header.\n");
         return false;
