IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2007, 10:15:05 AM (19 years ago)
Author:
magnier
Message:

fixed psFitsWriteBlank to move to the last HDU and call fits_write_img

File:
1 edited

Legend:

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

    r9662 r10915  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-10-19 23:12:50 $
     9 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-01-05 20:15:05 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    422422    int status = 0;                 // Status of cfitsio
    423423
     424    psFitsMoveLast(fits);
     425
    424426    int hdus = psFitsGetSize(fits);     // Number of HDUs in file
    425427    if (hdus == 0) {
     
    447449    }
    448450
     451    char buffer[10];
     452    fits_write_img(fits->fd, TSHORT, 1, 0, buffer, &status);
     453
    449454    return true;
    450455}
Note: See TracChangeset for help on using the changeset viewer.