IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Changing p_psFitsWriteHeader to psFitsWriteHeader (no check on the HDU). Changing psFitsWriteHeader to psFitsWriteBlank (generate blank HDU with header only).

File:
1 edited

Legend:

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

    r7227 r7229  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-05-26 03:24:49 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-05-27 01:49:22 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    335335    } else {
    336336        if (!after) {
    337             int chdu = psFitsGetExtNum(fits);   // Current HDU number
    338             if (chdu == 0) {
     337            if (psFitsGetExtNum(fits) == 0) {
    339338                // We're creating a replacement primary HDU.
    340339                // Set status to signal fits_insert_img to insert a new primary HDU
     
    349348    }
    350349
    351     if (header && !p_psFitsWriteHeader(header, fits)) {
     350    if (header && !psFitsWriteHeader(header, fits)) {
    352351        psError(PS_ERR_IO, false, "Unable to write FITS header.\n");
    353352        return false;
Note: See TracChangeset for help on using the changeset viewer.