IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7823


Ignore:
Timestamp:
Jul 5, 2006, 3:13:11 PM (20 years ago)
Author:
Paul Price
Message:

Allowing the writing of a completely minimal header.

File:
1 edited

Legend:

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

    r7713 r7823  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-06-28 01:56:58 $
     9 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-07-06 01:13:11 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    421421    }
    422422
    423     if (!output) {
    424         psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psFits_METADATA_NULL);
    425         return false;
    426     }
     423    // We allow output == NULL in order to write a minimal header.
    427424
    428425    // Create a dummy image HDU for the primary HDU
     
    436433    }
    437434
    438     return fitsWriteHeader(fits, output, false);
     435    if (output) {
     436        return fitsWriteHeader(fits, output, false);
     437    }
     438
     439    return true;
    439440}
    440441
Note: See TracChangeset for help on using the changeset viewer.