IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7232


Ignore:
Timestamp:
May 26, 2006, 3:59:36 PM (20 years ago)
Author:
Paul Price
Message:

Changing the order of arguments for psFitsWriteHeader and psFitsWriteBlank --- in output, the file handle should go first.

Location:
trunk/psLib/src/fits
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsHeader.c

    r7229 r7232  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-05-27 01:49:22 $
     9 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-05-27 01:59:36 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    219219
    220220
    221 bool psFitsWriteHeader(psMetadata *output, // Metadata that is to be output into the FITS file
    222                        psFits *fits     // The FITS file handle
     221bool psFitsWriteHeader(psFits *fits,     // The FITS file handle
     222                       psMetadata *output // Metadata that is to be output into the FITS file
    223223                      )
    224224{
     
    312312}
    313313
    314 bool psFitsWriteBlank(psMetadata* output,
    315                       psFits* fits)
     314bool psFitsWriteBlank(psFits* fits,
     315                      psMetadata* output
     316                     )
    316317{
    317318    if (!fits) {
  • trunk/psLib/src/fits/psFitsHeader.h

    r7229 r7232  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-05-27 01:49:22 $
     9 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-05-27 01:59:36 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4747 */
    4848bool psFitsWriteHeader(
    49     psMetadata* output,                 ///< the psMetadata data in which to write
    50     psFits* fits                        ///< the psFits object
     49    psFits* fits,                       ///< the psFits object
     50    psMetadata* output                  ///< the psMetadata data in which to write
    5151);
    5252
     
    5656 */
    5757bool psFitsWriteBlank(
    58     psMetadata* output,                 ///< the psMetadata data in which to write
    59     psFits* fits                        ///< the psFits object
     58    psFits* fits,                       ///< the psFits object
     59    psMetadata* output                  ///< the psMetadata data in which to write
    6060);
    6161
  • trunk/psLib/src/fits/psFitsImage.c

    r7229 r7232  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-05-27 01:49:22 $
     9 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-05-27 01:59:36 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    348348    }
    349349
    350     if (header && !psFitsWriteHeader(header, fits)) {
     350    if (header && !psFitsWriteHeader(fits, header)) {
    351351        psError(PS_ERR_IO, false, "Unable to write FITS header.\n");
    352352        return false;
  • trunk/psLib/src/fits/psFitsTable.c

    r7230 r7232  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-05-27 01:50:33 $
     9 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-05-27 01:59:36 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    732732
    733733    // Write header
    734     if (header && !psFitsWriteHeader(header, fits)) {
     734    if (header && !psFitsWriteHeader(fits, header)) {
    735735        psError(PS_ERR_IO, false, "Unable to write FITS header.\n");
    736736        return false;
Note: See TracChangeset for help on using the changeset viewer.